[INFO] cloning repository https://github.com/ryoha000/filterg
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ryoha000/filterg" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryoha000%2Ffilterg", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryoha000%2Ffilterg'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fdaa2683ff1a987d13564b91d2f2fdbfd69a3001
[INFO] checking ryoha000/filterg against master#d4be8efc6296bace5b1e165f1b34d3c6da76aa8e for pr-110141
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryoha000%2Ffilterg" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/ryoha000/filterg on toolchain d4be8efc6296bace5b1e165f1b34d3c6da76aa8e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d4be8efc6296bace5b1e165f1b34d3c6da76aa8e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/ryoha000/filterg
[INFO] finished tweaking git repo https://github.com/ryoha000/filterg
[INFO] tweaked toml for git repo https://github.com/ryoha000/filterg written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/ryoha000/filterg already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d4be8efc6296bace5b1e165f1b34d3c6da76aa8e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded windows_quote v0.20.1
[INFO] [stderr]   Downloaded windows v0.20.1
[INFO] [stderr]   Downloaded windows_macros v0.20.1
[INFO] [stderr]   Downloaded windows_gen v0.20.1
[INFO] [stderr]   Downloaded windows_reader v0.20.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+d4be8efc6296bace5b1e165f1b34d3c6da76aa8e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c05f61abc154d704cd2c46c1e284a05350d3144b32370dcc2a3ddf9da2dfc51b
[INFO] running `Command { std: "docker" "start" "-a" "c05f61abc154d704cd2c46c1e284a05350d3144b32370dcc2a3ddf9da2dfc51b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c05f61abc154d704cd2c46c1e284a05350d3144b32370dcc2a3ddf9da2dfc51b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c05f61abc154d704cd2c46c1e284a05350d3144b32370dcc2a3ddf9da2dfc51b", kill_on_drop: false }`
[INFO] [stdout] c05f61abc154d704cd2c46c1e284a05350d3144b32370dcc2a3ddf9da2dfc51b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+d4be8efc6296bace5b1e165f1b34d3c6da76aa8e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 8ab42fc9da774430084dd6a073b8eb34d61fb832bc3d5a1b17475b6846a6b126
[INFO] running `Command { std: "docker" "start" "-a" "8ab42fc9da774430084dd6a073b8eb34d61fb832bc3d5a1b17475b6846a6b126", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling cc v1.0.70
[INFO] [stderr]    Compiling pkg-config v0.3.20
[INFO] [stderr]    Compiling libc v0.2.102
[INFO] [stderr]    Compiling ucd-trie v0.1.3
[INFO] [stderr]    Compiling proc-macro2 v1.0.29
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling syn v1.0.76
[INFO] [stderr]    Compiling pest v2.1.3
[INFO] [stderr]    Compiling cmake v0.1.45
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling windows_reader v0.20.1
[INFO] [stderr]    Compiling windows_quote v0.20.1
[INFO] [stderr]     Checking adler32 v1.2.0
[INFO] [stderr]    Compiling semver-parser v0.10.2
[INFO] [stderr]    Compiling quote v1.0.9
[INFO] [stderr]    Compiling crc32fast v1.2.1
[INFO] [stderr]     Checking byteorder v1.4.3
[INFO] [stderr]    Compiling freetype-sys v0.13.1
[INFO] [stderr]    Compiling expat-sys v2.1.6
[INFO] [stderr]    Compiling windows_gen v0.20.1
[INFO] [stderr]    Compiling semver v0.11.0
[INFO] [stderr]    Compiling rustc_version v0.3.3
[INFO] [stderr]    Compiling servo-fontconfig-sys v5.1.0
[INFO] [stderr]    Compiling num-rational v0.3.2
[INFO] [stderr]    Compiling num-iter v0.1.42
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling pathfinder_simd v0.5.1
[INFO] [stderr]     Checking bitflags v1.3.2
[INFO] [stderr]     Checking deflate v0.8.6
[INFO] [stderr]     Checking miniz_oxide v0.3.7
[INFO] [stderr]    Compiling const-sha1 v0.2.0
[INFO] [stderr]     Checking color_quant v1.1.0
[INFO] [stderr]     Checking dirs-sys-next v0.1.2
[INFO] [stderr]     Checking bytemuck v1.7.2
[INFO] [stderr]     Checking same-file v1.0.6
[INFO] [stderr]     Checking png v0.16.8
[INFO] [stderr]     Checking plotters-backend v0.3.2
[INFO] [stderr]     Checking weezl v0.1.5
[INFO] [stderr]     Checking jpeg-decoder v0.1.22
[INFO] [stderr]     Checking pathfinder_geometry v0.5.1
[INFO] [stderr]     Checking walkdir v2.3.2
[INFO] [stderr]     Checking gif v0.11.2
[INFO] [stderr]     Checking dirs-next v2.0.0
[INFO] [stderr]     Checking servo-fontconfig v0.5.1
[INFO] [stderr]     Checking freetype v0.7.0
[INFO] [stderr]     Checking time v0.1.44
[INFO] [stderr]     Checking float-ord v0.2.0
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]     Checking image v0.23.14
[INFO] [stderr]     Checking strength_reduce v0.2.3
[INFO] [stderr]     Checking font-kit v0.10.1
[INFO] [stderr]     Checking chrono v0.4.19
[INFO] [stderr]     Checking plotters-svg v0.3.1
[INFO] [stderr]     Checking transpose v0.2.1
[INFO] [stderr]     Checking primal-check v0.3.1
[INFO] [stderr]     Checking num-complex v0.4.0
[INFO] [stderr]     Checking ttf-parser v0.12.3
[INFO] [stderr]     Checking hound v3.4.0
[INFO] [stderr]     Checking rustfft v6.0.1
[INFO] [stderr]     Checking plotters-bitmap v0.3.1
[INFO] [stderr]     Checking plotters v0.3.1
[INFO] [stderr]    Compiling windows_macros v0.20.1
[INFO] [stderr]    Compiling windows v0.20.1
[INFO] [stderr]    Compiling bindings v0.1.0 (/opt/rustwide/workdir/bindings)
[INFO] [stdout] warning: unused return value of `Box::<T>::from_raw` that must be used
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/bindings-b28aefdd560d4218/out/windows.rs:1:8784
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...aram { if ! value . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: Into...
[INFO] [stdout]   |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`
[INFO] [stdout]   = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]   |
[INFO] [stdout] 1 | # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Windows { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Win32 { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Foundation { # [ repr ( transparent ) ] # [ derive ( :: std :: default :: Default , :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct BOOL ( pub i32 ) ; unsafe impl :: windows :: Abi for BOOL { type Abi = Self ; type DefaultType = Self ; } impl BOOL { # [ inline ] pub fn as_bool ( self ) -> bool { ! ( self . 0 == 0 ) } # [ inline ] pub fn ok ( self ) -> :: windows :: Result < ( ) > { if self . as_bool ( ) { Ok ( ( ) ) } else { Err ( :: windows :: Error :: from_win32 ( ) ) } } # [ inline ] # [ track_caller ] pub fn unwrap ( self ) { self . ok ( ) . unwrap ( ) ; } # [ inline ] # [ track_caller ] pub fn expect ( self , msg : & str ) { self . ok ( ) . expect ( msg ) ; } } impl :: std :: convert :: From < BOOL > for bool { fn from ( value : BOOL ) -> Self { value . as_bool ( ) } } impl :: std :: convert :: From < & BOOL > for bool { fn from ( value : & BOOL ) -> Self { value . as_bool ( ) } } impl :: std :: convert :: From < bool > for BOOL { fn from ( value : bool ) -> Self { if value { BOOL ( 1 ) } else { BOOL ( 0 ) } } } impl :: std :: convert :: From < & bool > for BOOL { fn from ( value : & bool ) -> Self { ( * value ) . into ( ) } } impl :: std :: cmp :: PartialEq < bool > for BOOL { fn eq ( & self , other : & bool ) -> bool { self . as_bool ( ) == * other } } impl :: std :: cmp :: PartialEq < BOOL > for bool { fn eq ( & self , other : & BOOL ) -> bool { * self == other . as_bool ( ) } } impl std :: ops :: Not for BOOL { type Output = Self ; fn not ( self ) -> Self :: Output { if self . as_bool ( ) { BOOL ( 0 ) } else { BOOL ( 1 ) } } } impl < 'a > :: windows :: IntoParam < 'a , BOOL > for bool { fn into_param ( self ) -> :: windows :: Param < 'a , BOOL > { :: windows :: Param :: Owned ( self . into ( ) ) } } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: Eq ) ] pub struct BSTR ( pub * mut u16 ) ; impl BSTR { # [ doc = r" Create an empty `BSTR`." ] # [ doc = r"" ] # [ doc = r" This function does not allocate memory." ] pub fn new ( ) -> Self { Self ( std :: ptr :: null_mut ( ) ) } # [ doc = r" Returns `true` if the string is empty." ] pub fn is_empty ( & self ) -> bool { self . 0 . is_null ( ) } # [ doc = r" Returns the length of the string." ] pub fn len ( & self ) -> usize { if self . is_empty ( ) { return 0 ; } unsafe { SysStringLen ( self ) as usize } } # [ doc = r" Create a `BSTR` from a slice of 16-bit characters." ] pub fn from_wide ( value : & [ u16 ] ) -> Self { if value . len ( ) == 0 { return Self ( :: std :: ptr :: null_mut ( ) ) ; } unsafe { SysAllocStringLen ( PWSTR ( value . as_ptr ( ) as _ ) , value . len ( ) as u32 , ) } } # [ doc = r" Get the string as 16-bit characters." ] pub fn as_wide ( & self ) -> & [ u16 ] { if self . 0 . is_null ( ) { return & [ ] ; } unsafe { :: std :: slice :: from_raw_parts ( self . 0 as * const u16 , self . len ( ) ) } } } impl :: std :: clone :: Clone for BSTR { fn clone ( & self ) -> Self { Self :: from_wide ( self . as_wide ( ) ) } } impl :: std :: convert :: From < & str > for BSTR { fn from ( value : & str ) -> Self { let value : :: std :: vec :: Vec < u16 > = value . encode_utf16 ( ) . collect ( ) ; Self :: from_wide ( & value ) } } impl :: std :: convert :: From < :: std :: string :: String > for BSTR { fn from ( value : :: std :: string :: String ) -> Self { value . as_str ( ) . into ( ) } } impl :: std :: convert :: From < & :: std :: string :: String > for BSTR { fn from ( value : & :: std :: string :: String ) -> Self { value . as_str ( ) . into ( ) } } impl < 'a > :: std :: convert :: TryFrom < & 'a BSTR > for :: std :: string :: String { type Error = :: std :: string :: FromUtf16Error ; fn try_from ( value : & BSTR ) -> :: std :: result :: Result < Self , Self :: Error > { :: std :: string :: String :: from_utf16 ( value . as_wide ( ) ) } } impl :: std :: convert :: TryFrom < BSTR > for :: std :: string :: String { type Error = :: std :: string :: FromUtf16Error ; fn try_from ( value : BSTR ) -> :: std :: result :: Result < Self , Self :: Error > { :: std :: string :: String :: try_from ( & value ) } } impl :: std :: default :: Default for BSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } impl :: std :: fmt :: Display for BSTR { fn fmt ( & self , f : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { use :: std :: fmt :: Write ; for c in :: std :: char :: decode_utf16 ( self . as_wide ( ) . iter ( ) . cloned ( ) ) { f . write_char ( c . map_err ( | _ | :: std :: fmt :: Error ) ? ) ? } Ok ( ( ) ) } } impl :: std :: fmt :: Debug for BSTR { fn fmt ( & self , f : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { :: std :: write ! ( f , "{}" , self ) } } impl :: std :: cmp :: PartialEq for BSTR { fn eq ( & self , other : & Self ) -> bool { self . as_wide ( ) == other . as_wide ( ) } } impl :: std :: cmp :: PartialEq < :: std :: string :: String > for BSTR { fn eq ( & self , other : & :: std :: string :: String ) -> bool { self == other . as_str ( ) } } impl :: std :: cmp :: PartialEq < str > for BSTR { fn eq ( & self , other : & str ) -> bool { self == other } } impl :: std :: cmp :: PartialEq < & str > for BSTR { fn eq ( & self , other : && str ) -> bool { self . as_wide ( ) . iter ( ) . copied ( ) . eq ( other . encode_utf16 ( ) ) } } impl :: std :: cmp :: PartialEq < BSTR > for & str { fn eq ( & self , other : & BSTR ) -> bool { other == self } } impl :: std :: ops :: Drop for BSTR { fn drop ( & mut self ) { if ! self . 0 . is_null ( ) { unsafe { SysFreeString ( self as & Self ) } } } } unsafe impl :: windows :: Abi for BSTR { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } pub type BSTR_abi = * mut u16 ; pub unsafe fn CloseHandle < 'a , > ( hobject : impl :: windows :: IntoParam < 'a , HANDLE > , ) -> BOOL { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn CloseHandle ( hobject : HANDLE ) -> BOOL ; } :: std :: mem :: transmute ( CloseHandle ( hobject . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct FILETIME { pub dwLowDateTime : u32 , pub dwHighDateTime : u32 } impl FILETIME { } impl :: std :: default :: Default for FILETIME { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for FILETIME { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FILETIME" ) . field ( "dwLowDateTime" , & self . dwLowDateTime ) . field ( "dwHighDateTime" , & self . dwHighDateTime ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FILETIME { fn eq ( & self , other : & Self ) -> bool { self . dwLowDateTime == other . dwLowDateTime && self . dwHighDateTime == other . dwHighDateTime } } impl :: std :: cmp :: Eq for FILETIME { } unsafe impl :: windows :: Abi for FILETIME { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: default :: Default , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HANDLE ( pub isize ) ; unsafe impl :: windows :: Handle for HANDLE { fn is_invalid ( & self ) -> bool { self . 0 == 0 || self . 0 == - 1 } fn ok ( self ) -> :: windows :: Result < Self > { if self . is_invalid ( ) { Err ( :: windows :: Error :: from_win32 ( ) ) } else { Ok ( self ) } } } unsafe impl :: windows :: Abi for HANDLE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct PSTR ( pub * mut u8 ) ; impl PSTR { pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } unsafe impl :: windows :: Abi for PSTR { type Abi = Self ; type DefaultType = Self ; unsafe fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . is_null ( ) { unsafe { let _ = :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for & str { fn into_param ( self ) -> :: windows :: Param < 'a , PSTR > { :: windows :: Param :: Boxed ( PSTR ( :: std :: boxed :: Box :: < [ u8 ] > :: into_raw ( self . bytes ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u8 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for String { fn into_param ( self ) -> :: windows :: Param < 'a , PSTR > { :: windows :: Param :: Boxed ( PSTR ( :: std :: boxed :: Box :: < [ u8 ] > :: into_raw ( self . bytes ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u8 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct PWSTR ( pub * mut u16 ) ; impl PWSTR { pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PWSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } unsafe impl :: windows :: Abi for PWSTR { type Abi = Self ; type DefaultType = Self ; unsafe fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for & str { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_utf16 ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for String { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_utf16 ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ cfg ( windows ) ] impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for & :: std :: ffi :: OsStr { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { use std :: os :: windows :: ffi :: OsStrExt ; :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_wide ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ cfg ( windows ) ] impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for :: std :: ffi :: OsString { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { use std :: os :: windows :: ffi :: OsStrExt ; :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_wide ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } pub unsafe fn SysAllocStringLen < 'a , > ( strin : impl :: windows :: IntoParam < 'a , PWSTR > , ui : u32 , ) -> BSTR { # [ cfg ( windows ) ] { # [ link ( name ="oleaut32" ) ] extern "system" { fn SysAllocStringLen ( strin : PWSTR , ui : u32 ) -> BSTR ; } :: std :: mem :: transmute ( SysAllocStringLen ( strin . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ui ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SysFreeString < 'a , > ( bstrstring : impl :: windows :: IntoParam < 'a , BSTR > , ) { # [ cfg ( windows ) ] { # [ link ( name ="oleaut32" ) ] extern "system" { fn SysFreeString ( bstrstring : :: std :: mem :: ManuallyDrop < BSTR > ) ; } :: std :: mem :: transmute ( SysFreeString ( bstrstring . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SysStringLen < 'a , > ( pbstr : impl :: windows :: IntoParam < 'a , BSTR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="oleaut32" ) ] extern "system" { fn SysStringLen ( pbstr : :: std :: mem :: ManuallyDrop < BSTR > ) -> u32 ; } :: std :: mem :: transmute ( SysStringLen ( pbstr . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Media { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Audio { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod CoreAudio { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct AUDCLNT_SHAREMODE ( pub i32 ) ; pub const AUDCLNT_SHAREMODE_SHARED : AUDCLNT_SHAREMODE = AUDCLNT_SHAREMODE ( 0i32 ) ; pub const AUDCLNT_SHAREMODE_EXCLUSIVE : AUDCLNT_SHAREMODE = AUDCLNT_SHAREMODE ( 1i32 ) ; impl :: std :: convert :: From < i32 > for AUDCLNT_SHAREMODE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for AUDCLNT_SHAREMODE { type Abi = Self ; type DefaultType = Self ; } pub const AUDCLNT_STREAMFLAGS_EVENTCALLBACK : u32 = 262144u32 ; pub const AUDCLNT_STREAMFLAGS_LOOPBACK : u32 = 131072u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct AUDCLNT_STREAMOPTIONS ( pub u32 ) ; pub const AUDCLNT_STREAMOPTIONS_NONE : AUDCLNT_STREAMOPTIONS = AUDCLNT_STREAMOPTIONS ( 0u32 ) ; pub const AUDCLNT_STREAMOPTIONS_RAW : AUDCLNT_STREAMOPTIONS = AUDCLNT_STREAMOPTIONS ( 1u32 ) ; pub const AUDCLNT_STREAMOPTIONS_MATCH_FORMAT : AUDCLNT_STREAMOPTIONS = AUDCLNT_STREAMOPTIONS ( 2u32 ) ; pub const AUDCLNT_STREAMOPTIONS_AMBISONICS : AUDCLNT_STREAMOPTIONS = AUDCLNT_STREAMOPTIONS ( 4u32 ) ; impl :: std :: convert :: From < u32 > for AUDCLNT_STREAMOPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for AUDCLNT_STREAMOPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for AUDCLNT_STREAMOPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for AUDCLNT_STREAMOPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for AUDCLNT_STREAMOPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for AUDCLNT_STREAMOPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for AUDCLNT_STREAMOPTIONS { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct AUDIO_STREAM_CATEGORY ( pub i32 ) ; pub const AudioCategory_Other : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 0i32 ) ; pub const AudioCategory_ForegroundOnlyMedia : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 1i32 ) ; pub const AudioCategory_Communications : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 3i32 ) ; pub const AudioCategory_Alerts : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 4i32 ) ; pub const AudioCategory_SoundEffects : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 5i32 ) ; pub const AudioCategory_GameEffects : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 6i32 ) ; pub const AudioCategory_GameMedia : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 7i32 ) ; pub const AudioCategory_GameChat : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 8i32 ) ; pub const AudioCategory_Speech : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 9i32 ) ; pub const AudioCategory_Movie : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 10i32 ) ; pub const AudioCategory_Media : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 11i32 ) ; impl :: std :: convert :: From < i32 > for AUDIO_STREAM_CATEGORY { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for AUDIO_STREAM_CATEGORY { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct AudioClientProperties { pub cbSize : u32 , pub bIsOffload : super::super::super::Foundation:: BOOL , pub eCategory : AUDIO_STREAM_CATEGORY , pub Options : AUDCLNT_STREAMOPTIONS } impl AudioClientProperties { } impl :: std :: default :: Default for AudioClientProperties { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for AudioClientProperties { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "AudioClientProperties" ) . field ( "cbSize" , & self . cbSize ) . field ( "bIsOffload" , & self . bIsOffload ) . field ( "eCategory" , & self . eCategory ) . field ( "Options" , & self . Options ) . finish ( ) } } impl :: std :: cmp :: PartialEq for AudioClientProperties { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . bIsOffload == other . bIsOffload && self . eCategory == other . eCategory && self . Options == other . Options } } impl :: std :: cmp :: Eq for AudioClientProperties { } unsafe impl :: windows :: Abi for AudioClientProperties { type Abi = Self ; type DefaultType = Self ; } pub const DEVICE_STATE_ACTIVE : u32 = 1u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EDataFlow ( pub i32 ) ; pub const eRender : EDataFlow = EDataFlow ( 0i32 ) ; pub const eCapture : EDataFlow = EDataFlow ( 1i32 ) ; pub const eAll : EDataFlow = EDataFlow ( 2i32 ) ; pub const EDataFlow_enum_count : EDataFlow = EDataFlow ( 3i32 ) ; impl :: std :: convert :: From < i32 > for EDataFlow { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EDataFlow { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct ERole ( pub i32 ) ; pub const eConsole : ERole = ERole ( 0i32 ) ; pub const eMultimedia : ERole = ERole ( 1i32 ) ; pub const eCommunications : ERole = ERole ( 2i32 ) ; pub const ERole_enum_count : ERole = ERole ( 3i32 ) ; impl :: std :: convert :: From < i32 > for ERole { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for ERole { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IAudioCaptureClient ( :: windows :: IUnknown ) ; impl IAudioCaptureClient { pub unsafe fn GetBuffer < > ( & self , ppdata : * mut * mut u8 , pnumframestoread : * mut u32 , pdwflags : * mut u32 , pu64deviceposition : * mut u64 , pu64qpcposition : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( ppdata ) , :: std :: mem :: transmute ( pnumframestoread ) , :: std :: mem :: transmute ( pdwflags ) , :: std :: mem :: transmute ( pu64deviceposition ) , :: std :: mem :: transmute ( pu64qpcposition ) , ) . ok ( ) } pub unsafe fn ReleaseBuffer < > ( & self , numframesread : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( numframesread ) , ) . ok ( ) } pub unsafe fn GetNextPacketSize < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } } unsafe impl :: windows :: Interface for IAudioCaptureClient { type Vtable = IAudioCaptureClient_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3366829412 ,59166 ,18592 , [ 164 ,222 ,24 ,92 ,57 ,92 ,211 ,23 ] , ) ; } impl :: std :: convert :: From < IAudioCaptureClient > for :: windows :: IUnknown { fn from ( value : IAudioCaptureClient ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioCaptureClient > for :: windows :: IUnknown { fn from ( value : & IAudioCaptureClient ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IAudioCaptureClient { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IAudioCaptureClient { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IAudioCaptureClient_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppdata : * mut * mut u8 , pnumframestoread : * mut u32 , pdwflags : * mut u32 , pu64deviceposition : * mut u64 , pu64qpcposition : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , numframesread : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumframesinnextpacket : * mut u32 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IAudioClient ( :: windows :: IUnknown ) ; impl IAudioClient { pub unsafe fn Initialize < > ( & self , sharemode : AUDCLNT_SHAREMODE , streamflags : u32 , hnsbufferduration : i64 , hnsperiodicity : i64 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( sharemode ) , :: std :: mem :: transmute ( streamflags ) , :: std :: mem :: transmute ( hnsbufferduration ) , :: std :: mem :: transmute ( hnsperiodicity ) , :: std :: mem :: transmute ( pformat ) , :: std :: mem :: transmute ( audiosessionguid ) , ) . ok ( ) } pub unsafe fn GetBufferSize < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn GetStreamLatency < > ( & self , ) -> :: windows :: Result < i64 > { let mut result__ : < i64 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < i64 > ( result__ ) } pub unsafe fn GetCurrentPadding < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn IsFormatSupported < > ( & self , sharemode : AUDCLNT_SHAREMODE , pformat : * const super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: Result < * mut super::super::Multimedia:: WAVEFORMATEX > { let mut result__ : < * mut super::super::Multimedia:: WAVEFORMATEX as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( sharemode ) , :: std :: mem :: transmute ( pformat ) , & mut result__ ) . from_abi :: < * mut super::super::Multimedia:: WAVEFORMATEX > ( result__ ) } pub unsafe fn GetMixFormat < > ( & self , ) -> :: windows :: Result < * mut super::super::Multimedia:: WAVEFORMATEX > { let mut result__ : < * mut super::super::Multimedia:: WAVEFORMATEX as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < * mut super::super::Multimedia:: WAVEFORMATEX > ( result__ ) } pub unsafe fn GetDevicePeriod < > ( & self , phnsdefaultdeviceperiod : * mut i64 , phnsminimumdeviceperiod : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( phnsdefaultdeviceperiod ) , :: std :: mem :: transmute ( phnsminimumdeviceperiod ) , ) . ok ( ) } pub unsafe fn Start < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn Reset < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn SetEventHandle < 'a , > ( & self , eventhandle : impl :: windows :: IntoParam < 'a , super::super::super::Foundation:: HANDLE > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: std :: mem :: transmute_copy ( self ) , eventhandle . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetService < > ( & self , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( ppv ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IAudioClient { type Vtable = IAudioClient_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 481930572 ,56314 ,19506 , [ 177 ,120 ,194 ,245 ,104 ,167 ,3 ,178 ] , ) ; } impl :: std :: convert :: From < IAudioClient > for :: windows :: IUnknown { fn from ( value : IAudioClient ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioClient > for :: windows :: IUnknown { fn from ( value : & IAudioClient ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IAudioClient { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IAudioClient { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IAudioClient_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sharemode : AUDCLNT_SHAREMODE , streamflags : u32 , hnsbufferduration : i64 , hnsperiodicity : i64 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumbufferframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , phnslatency : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumpaddingframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sharemode : AUDCLNT_SHAREMODE , pformat : * const super::super::Multimedia:: WAVEFORMATEX , ppclosestmatch : * mut * mut super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppdeviceformat : * mut * mut super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , phnsdefaultdeviceperiod : * mut i64 , phnsminimumdeviceperiod : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandle : super::super::super::Foundation:: HANDLE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IAudioClient2 ( :: windows :: IUnknown ) ; impl IAudioClient2 { pub unsafe fn Initialize < > ( & self , sharemode : AUDCLNT_SHAREMODE , streamflags : u32 , hnsbufferduration : i64 , hnsperiodicity : i64 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( sharemode ) , :: std :: mem :: transmute ( streamflags ) , :: std :: mem :: transmute ( hnsbufferduration ) , :: std :: mem :: transmute ( hnsperiodicity ) , :: std :: mem :: transmute ( pformat ) , :: std :: mem :: transmute ( audiosessionguid ) , ) . ok ( ) } pub unsafe fn GetBufferSize < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn GetStreamLatency < > ( & self , ) -> :: windows :: Result < i64 > { let mut result__ : < i64 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < i64 > ( result__ ) } pub unsafe fn GetCurrentPadding < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn IsFormatSupported < > ( & self , sharemode : AUDCLNT_SHAREMODE , pformat : * const super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: Result < * mut super::super::Multimedia:: WAVEFORMATEX > { let mut result__ : < * mut super::super::Multimedia:: WAVEFORMATEX as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( sharemode ) , :: std :: mem :: transmute ( pformat ) , & mut result__ ) . from_abi :: < * mut super::super::Multimedia:: WAVEFORMATEX > ( result__ ) } pub unsafe fn GetMixFormat < > ( & self , ) -> :: windows :: Result < * mut super::super::Multimedia:: WAVEFORMATEX > { let mut result__ : < * mut super::super::Multimedia:: WAVEFORMATEX as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < * mut super::super::Multimedia:: WAVEFORMATEX > ( result__ ) } pub unsafe fn GetDevicePeriod < > ( & self , phnsdefaultdeviceperiod : * mut i64 , phnsminimumdeviceperiod : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( phnsdefaultdeviceperiod ) , :: std :: mem :: transmute ( phnsminimumdeviceperiod ) , ) . ok ( ) } pub unsafe fn Start < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn Reset < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn SetEventHandle < 'a , > ( & self , eventhandle : impl :: windows :: IntoParam < 'a , super::super::super::Foundation:: HANDLE > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: std :: mem :: transmute_copy ( self ) , eventhandle . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetService < > ( & self , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( ppv ) , ) . ok ( ) } pub unsafe fn IsOffloadCapable < > ( & self , category : AUDIO_STREAM_CATEGORY , ) -> :: windows :: Result < super::super::super::Foundation:: BOOL > { let mut result__ : < super::super::super::Foundation:: BOOL as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( category ) , & mut result__ ) . from_abi :: < super::super::super::Foundation:: BOOL > ( result__ ) } pub unsafe fn SetClientProperties < > ( & self , pproperties : * const AudioClientProperties , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( pproperties ) , ) . ok ( ) } pub unsafe fn GetBufferSizeLimits < 'a , > ( & self , pformat : * const super::super::Multimedia:: WAVEFORMATEX , beventdriven : impl :: windows :: IntoParam < 'a , super::super::super::Foundation:: BOOL > , phnsminbufferduration : * mut i64 , phnsmaxbufferduration : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( pformat ) , beventdriven . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( phnsminbufferduration ) , :: std :: mem :: transmute ( phnsmaxbufferduration ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IAudioClient2 { type Vtable = IAudioClient2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1919383757 ,62986 ,20186 , [ 130 ,222 ,228 ,118 ,16 ,205 ,120 ,170 ] , ) ; } impl :: std :: convert :: From < IAudioClient2 > for :: windows :: IUnknown { fn from ( value : IAudioClient2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioClient2 > for :: windows :: IUnknown { fn from ( value : & IAudioClient2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IAudioClient2 { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IAudioClient2 { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < IAudioClient2 > for IAudioClient { fn from ( value : IAudioClient2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioClient2 > for IAudioClient { fn from ( value : & IAudioClient2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , IAudioClient > for IAudioClient2 { fn into_param ( self ) -> :: windows :: Param < 'a , IAudioClient > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < IAudioClient > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , IAudioClient > for & IAudioClient2 { fn into_param ( self ) -> :: windows :: Param < 'a , IAudioClient > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < IAudioClient > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IAudioClient2_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sharemode : AUDCLNT_SHAREMODE , streamflags : u32 , hnsbufferduration : i64 , hnsperiodicity : i64 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumbufferframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , phnslatency : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumpaddingframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sharemode : AUDCLNT_SHAREMODE , pformat : * const super::super::Multimedia:: WAVEFORMATEX , ppclosestmatch : * mut * mut super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppdeviceformat : * mut * mut super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , phnsdefaultdeviceperiod : * mut i64 , phnsminimumdeviceperiod : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandle : super::super::super::Foundation:: HANDLE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , category : AUDIO_STREAM_CATEGORY , pboffloadcapable : * mut super::super::super::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pproperties : * const AudioClientProperties , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pformat : * const super::super::Multimedia:: WAVEFORMATEX , beventdriven : super::super::super::Foundation:: BOOL , phnsminbufferduration : * mut i64 , phnsmaxbufferduration : * mut i64 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IAudioClient3 ( :: windows :: IUnknown ) ; impl IAudioClient3 { pub unsafe fn Initialize < > ( & self , sharemode : AUDCLNT_SHAREMODE , streamflags : u32 , hnsbufferduration : i64 , hnsperiodicity : i64 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( sharemode ) , :: std :: mem :: transmute ( streamflags ) , :: std :: mem :: transmute ( hnsbufferduration ) , :: std :: mem :: transmute ( hnsperiodicity ) , :: std :: mem :: transmute ( pformat ) , :: std :: mem :: transmute ( audiosessionguid ) , ) . ok ( ) } pub unsafe fn GetBufferSize < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn GetStreamLatency < > ( & self , ) -> :: windows :: Result < i64 > { let mut result__ : < i64 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < i64 > ( result__ ) } pub unsafe fn GetCurrentPadding < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn IsFormatSupported < > ( & self , sharemode : AUDCLNT_SHAREMODE , pformat : * const super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: Result < * mut super::super::Multimedia:: WAVEFORMATEX > { let mut result__ : < * mut super::super::Multimedia:: WAVEFORMATEX as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( sharemode ) , :: std :: mem :: transmute ( pformat ) , & mut result__ ) . from_abi :: < * mut super::super::Multimedia:: WAVEFORMATEX > ( result__ ) } pub unsafe fn GetMixFormat < > ( & self , ) -> :: windows :: Result < * mut super::super::Multimedia:: WAVEFORMATEX > { let mut result__ : < * mut super::super::Multimedia:: WAVEFORMATEX as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < * mut super::super::Multimedia:: WAVEFORMATEX > ( result__ ) } pub unsafe fn GetDevicePeriod < > ( & self , phnsdefaultdeviceperiod : * mut i64 , phnsminimumdeviceperiod : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( phnsdefaultdeviceperiod ) , :: std :: mem :: transmute ( phnsminimumdeviceperiod ) , ) . ok ( ) } pub unsafe fn Start < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn Reset < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn SetEventHandle < 'a , > ( & self , eventhandle : impl :: windows :: IntoParam < 'a , super::super::super::Foundation:: HANDLE > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: std :: mem :: transmute_copy ( self ) , eventhandle . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetService < > ( & self , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( ppv ) , ) . ok ( ) } pub unsafe fn IsOffloadCapable < > ( & self , category : AUDIO_STREAM_CATEGORY , ) -> :: windows :: Result < super::super::super::Foundation:: BOOL > { let mut result__ : < super::super::super::Foundation:: BOOL as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( category ) , & mut result__ ) . from_abi :: < super::super::super::Foundation:: BOOL > ( result__ ) } pub unsafe fn SetClientProperties < > ( & self , pproperties : * const AudioClientProperties , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( pproperties ) , ) . ok ( ) } pub unsafe fn GetBufferSizeLimits < 'a , > ( & self , pformat : * const super::super::Multimedia:: WAVEFORMATEX , beventdriven : impl :: windows :: IntoParam < 'a , super::super::super::Foundation:: BOOL > , phnsminbufferduration : * mut i64 , phnsmaxbufferduration : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( pformat ) , beventdriven . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( phnsminbufferduration ) , :: std :: mem :: transmute ( phnsmaxbufferduration ) , ) . ok ( ) } pub unsafe fn GetSharedModeEnginePeriod < > ( & self , pformat : * const super::super::Multimedia:: WAVEFORMATEX , pdefaultperiodinframes : * mut u32 , pfundamentalperiodinframes : * mut u32 , pminperiodinframes : * mut u32 , pmaxperiodinframes : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( pformat ) , :: std :: mem :: transmute ( pdefaultperiodinframes ) , :: std :: mem :: transmute ( pfundamentalperiodinframes ) , :: std :: mem :: transmute ( pminperiodinframes ) , :: std :: mem :: transmute ( pmaxperiodinframes ) , ) . ok ( ) } pub unsafe fn GetCurrentSharedModeEnginePeriod < > ( & self , ppformat : * mut * mut super::super::Multimedia:: WAVEFORMATEX , pcurrentperiodinframes : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( ppformat ) , :: std :: mem :: transmute ( pcurrentperiodinframes ) , ) . ok ( ) } pub unsafe fn InitializeSharedAudioStream < > ( & self , streamflags : u32 , periodinframes : u32 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( streamflags ) , :: std :: mem :: transmute ( periodinframes ) , :: std :: mem :: transmute ( pformat ) , :: std :: mem :: transmute ( audiosessionguid ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IAudioClient3 { type Vtable = IAudioClient3_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2127883783 ,36455 ,19668 , [ 140 ,26 ,43 ,122 ,89 ,135 ,173 ,66 ] , ) ; } impl :: std :: convert :: From < IAudioClient3 > for :: windows :: IUnknown { fn from ( value : IAudioClient3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioClient3 > for :: windows :: IUnknown { fn from ( value : & IAudioClient3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IAudioClient3 { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IAudioClient3 { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < IAudioClient3 > for IAudioClient2 { fn from ( value : IAudioClient3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioClient3 > for IAudioClient2 { fn from ( value : & IAudioClient3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , IAudioClient2 > for IAudioClient3 { fn into_param ( self ) -> :: windows :: Param < 'a , IAudioClient2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < IAudioClient2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , IAudioClient2 > for & IAudioClient3 { fn into_param ( self ) -> :: windows :: Param < 'a , IAudioClient2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < IAudioClient2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < IAudioClient3 > for IAudioClient { fn from ( value : IAudioClient3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioClient3 > for IAudioClient { fn from ( value : & IAudioClient3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , IAudioClient > for IAudioClient3 { fn into_param ( self ) -> :: windows :: Param < 'a , IAudioClient > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < IAudioClient > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , IAudioClient > for & IAudioClient3 { fn into_param ( self ) -> :: windows :: Param < 'a , IAudioClient > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < IAudioClient > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IAudioClient3_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sharemode : AUDCLNT_SHAREMODE , streamflags : u32 , hnsbufferduration : i64 , hnsperiodicity : i64 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumbufferframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , phnslatency : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumpaddingframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sharemode : AUDCLNT_SHAREMODE , pformat : * const super::super::Multimedia:: WAVEFORMATEX , ppclosestmatch : * mut * mut super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppdeviceformat : * mut * mut super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , phnsdefaultdeviceperiod : * mut i64 , phnsminimumdeviceperiod : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandle : super::super::super::Foundation:: HANDLE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , category : AUDIO_STREAM_CATEGORY , pboffloadcapable : * mut super::super::super::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pproperties : * const AudioClientProperties , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pformat : * const super::super::Multimedia:: WAVEFORMATEX , beventdriven : super::super::super::Foundation:: BOOL , phnsminbufferduration : * mut i64 , phnsmaxbufferduration : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pformat : * const super::super::Multimedia:: WAVEFORMATEX , pdefaultperiodinframes : * mut u32 , pfundamentalperiodinframes : * mut u32 , pminperiodinframes : * mut u32 , pmaxperiodinframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppformat : * mut * mut super::super::Multimedia:: WAVEFORMATEX , pcurrentperiodinframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , streamflags : u32 , periodinframes : u32 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IAudioRenderClient ( :: windows :: IUnknown ) ; impl IAudioRenderClient { pub unsafe fn GetBuffer < > ( & self , numframesrequested : u32 , ) -> :: windows :: Result < * mut u8 > { let mut result__ : < * mut u8 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( numframesrequested ) , & mut result__ ) . from_abi :: < * mut u8 > ( result__ ) } pub unsafe fn ReleaseBuffer < > ( & self , numframeswritten : u32 , dwflags : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( numframeswritten ) , :: std :: mem :: transmute ( dwflags ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IAudioRenderClient { type Vtable = IAudioRenderClient_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4069829884 ,12614 ,17539 , [ 167 ,191 ,173 ,220 ,167 ,194 ,96 ,226 ] , ) ; } impl :: std :: convert :: From < IAudioRenderClient > for :: windows :: IUnknown { fn from ( value : IAudioRenderClient ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioRenderClient > for :: windows :: IUnknown { fn from ( value : & IAudioRenderClient ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IAudioRenderClient { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IAudioRenderClient { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IAudioRenderClient_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , numframesrequested : u32 , ppdata : * mut * mut u8 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , numframeswritten : u32 , dwflags : u32 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IMMDevice ( :: windows :: IUnknown ) ; impl IMMDevice { pub unsafe fn Activate < > ( & self , iid : * const :: windows :: Guid , dwclsctx : u32 , pactivationparams : * const super::super::super::Storage::StructuredStorage:: PROPVARIANT , ppinterface : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( iid ) , :: std :: mem :: transmute ( dwclsctx ) , :: std :: mem :: transmute ( pactivationparams ) , :: std :: mem :: transmute ( ppinterface ) , ) . ok ( ) } pub unsafe fn OpenPropertyStore < > ( & self , stgmaccess : u32 , ) -> :: windows :: Result < super::super::super::System::PropertiesSystem:: IPropertyStore > { let mut result__ : < super::super::super::System::PropertiesSystem:: IPropertyStore as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( stgmaccess ) , & mut result__ ) . from_abi :: < super::super::super::System::PropertiesSystem:: IPropertyStore > ( result__ ) } pub unsafe fn GetId < > ( & self , ) -> :: windows :: Result < super::super::super::Foundation:: PWSTR > { let mut result__ : < super::super::super::Foundation:: PWSTR as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < super::super::super::Foundation:: PWSTR > ( result__ ) } pub unsafe fn GetState < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } } unsafe impl :: windows :: Interface for IMMDevice { type Vtable = IMMDevice_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3597010495 ,5511 ,20035 , [ 129 ,241 ,185 ,72 ,232 ,7 ,54 ,63 ] , ) ; } impl :: std :: convert :: From < IMMDevice > for :: windows :: IUnknown { fn from ( value : IMMDevice ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IMMDevice > for :: windows :: IUnknown { fn from ( value : & IMMDevice ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IMMDevice { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IMMDevice { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IMMDevice_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : * const :: windows :: Guid , dwclsctx : u32 , pactivationparams : * const :: std :: mem :: ManuallyDrop < super::super::super::Storage::StructuredStorage:: PROPVARIANT > , ppinterface : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , stgmaccess : u32 , ppproperties : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppstrid : * mut super::super::super::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pdwstate : * mut u32 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IMMDeviceCollection ( :: windows :: IUnknown ) ; impl IMMDeviceCollection { pub unsafe fn GetCount < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn Item < > ( & self , ndevice : u32 , ) -> :: windows :: Result < IMMDevice > { let mut result__ : < IMMDevice as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( ndevice ) , & mut result__ ) . from_abi :: < IMMDevice > ( result__ ) } } unsafe impl :: windows :: Interface for IMMDeviceCollection { type Vtable = IMMDeviceCollection_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 198681022 ,31258 ,17627 , [ 131 ,151 ,204 ,83 ,146 ,56 ,123 ,94 ] , ) ; } impl :: std :: convert :: From < IMMDeviceCollection > for :: windows :: IUnknown { fn from ( value : IMMDeviceCollection ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IMMDeviceCollection > for :: windows :: IUnknown { fn from ( value : & IMMDeviceCollection ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IMMDeviceCollection { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IMMDeviceCollection { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IMMDeviceCollection_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pcdevices : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ndevice : u32 , ppdevice : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IMMDeviceEnumerator ( :: windows :: IUnknown ) ; impl IMMDeviceEnumerator { pub unsafe fn EnumAudioEndpoints < > ( & self , dataflow : EDataFlow , dwstatemask : u32 , ) -> :: windows :: Result < IMMDeviceCollection > { let mut result__ : < IMMDeviceCollection as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( dataflow ) , :: std :: mem :: transmute ( dwstatemask ) , & mut result__ ) . from_abi :: < IMMDeviceCollection > ( result__ ) } pub unsafe fn GetDefaultAudioEndpoint < > ( & self , dataflow : EDataFlow , role : ERole , ) -> :: windows :: Result < IMMDevice > { let mut result__ : < IMMDevice as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( dataflow ) , :: std :: mem :: transmute ( role ) , & mut result__ ) . from_abi :: < IMMDevice > ( result__ ) } pub unsafe fn GetDevice < 'a , > ( & self , pwstrid : impl :: windows :: IntoParam < 'a , super::super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < IMMDevice > { let mut result__ : < IMMDevice as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , pwstrid . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < IMMDevice > ( result__ ) } pub unsafe fn RegisterEndpointNotificationCallback < 'a , > ( & self , pclient : impl :: windows :: IntoParam < 'a , IMMNotificationClient > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: std :: mem :: transmute_copy ( self ) , pclient . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn UnregisterEndpointNotificationCallback < 'a , > ( & self , pclient : impl :: windows :: IntoParam < 'a , IMMNotificationClient > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: std :: mem :: transmute_copy ( self ) , pclient . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IMMDeviceEnumerator { type Vtable = IMMDeviceEnumerator_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2841011410 ,38420 ,20277 , [ 167 ,70 ,222 ,141 ,182 ,54 ,23 ,230 ] , ) ; } impl :: std :: convert :: From < IMMDeviceEnumerator > for :: windows :: IUnknown { fn from ( value : IMMDeviceEnumerator ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IMMDeviceEnumerator > for :: windows :: IUnknown { fn from ( value : & IMMDeviceEnumerator ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IMMDeviceEnumerator { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IMMDeviceEnumerator { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IMMDeviceEnumerator_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dataflow : EDataFlow , dwstatemask : u32 , ppdevices : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dataflow : EDataFlow , role : ERole , ppendpoint : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pwstrid : super::super::super::Foundation:: PWSTR , ppdevice : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pclient : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pclient : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IMMNotificationClient ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IMMNotificationClient { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2039606985 ,32393 ,19845 , [ 131 ,144 ,108 ,112 ,60 ,236 ,96 ,192 ] , ) ; } pub const MMDeviceEnumerator : :: windows :: Guid = :: windows :: Guid :: from_values ( 3168666517 ,58671 ,18044 , [ 142 ,61 ,196 ,87 ,146 ,145 ,105 ,46 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Multimedia { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C , packed ( 1 ) ) ] pub struct WAVEFORMATEX { pub wFormatTag : u16 , pub nChannels : u16 , pub nSamplesPerSec : u32 , pub nAvgBytesPerSec : u32 , pub nBlockAlign : u16 , pub wBitsPerSample : u16 , pub cbSize : u16 } impl WAVEFORMATEX { } impl :: std :: default :: Default for WAVEFORMATEX { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for WAVEFORMATEX { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for WAVEFORMATEX { } unsafe impl :: windows :: Abi for WAVEFORMATEX { type Abi = Self ; type DefaultType = Self ; } pub const WAVE_FORMAT_IEEE_FLOAT : u32 = 3u32 ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Security { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SECURITY_ATTRIBUTES { pub nLength : u32 , pub lpSecurityDescriptor : * mut :: std :: ffi :: c_void , pub bInheritHandle : super::Foundation:: BOOL } impl SECURITY_ATTRIBUTES { } impl :: std :: default :: Default for SECURITY_ATTRIBUTES { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for SECURITY_ATTRIBUTES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SECURITY_ATTRIBUTES" ) . field ( "nLength" , & self . nLength ) . field ( "lpSecurityDescriptor" , & self . lpSecurityDescriptor ) . field ( "bInheritHandle" , & self . bInheritHandle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SECURITY_ATTRIBUTES { fn eq ( & self , other : & Self ) -> bool { self . nLength == other . nLength && self . lpSecurityDescriptor == other . lpSecurityDescriptor && self . bInheritHandle == other . bInheritHandle } } impl :: std :: cmp :: Eq for SECURITY_ATTRIBUTES { } unsafe impl :: windows :: Abi for SECURITY_ATTRIBUTES { type Abi = Self ; type DefaultType = Self ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Storage { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod StructuredStorage { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CABOOL { pub cElems : u32 , pub pElems : * mut i16 } impl CABOOL { } impl :: std :: default :: Default for CABOOL { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CABOOL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CABOOL" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CABOOL { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CABOOL { } unsafe impl :: windows :: Abi for CABOOL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CABSTR { pub cElems : u32 , pub pElems : * mut super::super::Foundation:: BSTR } impl CABSTR { } impl :: std :: default :: Default for CABSTR { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CABSTR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CABSTR" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CABSTR { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CABSTR { } unsafe impl :: windows :: Abi for CABSTR { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CABSTRBLOB { pub cElems : u32 , pub pElems : * mut super::super::System::SystemServices:: BSTRBLOB } impl CABSTRBLOB { } impl :: std :: default :: Default for CABSTRBLOB { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CABSTRBLOB { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CABSTRBLOB" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CABSTRBLOB { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CABSTRBLOB { } unsafe impl :: windows :: Abi for CABSTRBLOB { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAC { pub cElems : u32 , pub pElems : super::super::Foundation:: PSTR } impl CAC { } impl :: std :: default :: Default for CAC { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAC { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAC" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAC { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAC { } unsafe impl :: windows :: Abi for CAC { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CACLIPDATA { pub cElems : u32 , pub pElems : * mut super::super::System::SystemServices:: CLIPDATA } impl CACLIPDATA { } impl :: std :: default :: Default for CACLIPDATA { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CACLIPDATA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CACLIPDATA" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CACLIPDATA { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CACLIPDATA { } unsafe impl :: windows :: Abi for CACLIPDATA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CACLSID { pub cElems : u32 , pub pElems : * mut :: windows :: Guid } impl CACLSID { } impl :: std :: default :: Default for CACLSID { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CACLSID { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CACLSID" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CACLSID { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CACLSID { } unsafe impl :: windows :: Abi for CACLSID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CACY { pub cElems : u32 , pub pElems : * mut super::super::System::SystemServices:: CY } impl CACY { } impl :: std :: default :: Default for CACY { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CACY { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CACY" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CACY { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CACY { } unsafe impl :: windows :: Abi for CACY { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CADATE { pub cElems : u32 , pub pElems : * mut f64 } impl CADATE { } impl :: std :: default :: Default for CADATE { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CADATE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CADATE" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CADATE { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CADATE { } unsafe impl :: windows :: Abi for CADATE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CADBL { pub cElems : u32 , pub pElems : * mut f64 } impl CADBL { } impl :: std :: default :: Default for CADBL { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CADBL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CADBL" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CADBL { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CADBL { } unsafe impl :: windows :: Abi for CADBL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAFILETIME { pub cElems : u32 , pub pElems : * mut super::super::Foundation:: FILETIME } impl CAFILETIME { } impl :: std :: default :: Default for CAFILETIME { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAFILETIME { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAFILETIME" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAFILETIME { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAFILETIME { } unsafe impl :: windows :: Abi for CAFILETIME { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAFLT { pub cElems : u32 , pub pElems : * mut f32 } impl CAFLT { } impl :: std :: default :: Default for CAFLT { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAFLT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAFLT" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAFLT { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAFLT { } unsafe impl :: windows :: Abi for CAFLT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAH { pub cElems : u32 , pub pElems : * mut i64 } impl CAH { } impl :: std :: default :: Default for CAH { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAH { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAH" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAH { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAH { } unsafe impl :: windows :: Abi for CAH { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAI { pub cElems : u32 , pub pElems : * mut i16 } impl CAI { } impl :: std :: default :: Default for CAI { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAI { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAI" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAI { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAI { } unsafe impl :: windows :: Abi for CAI { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAL { pub cElems : u32 , pub pElems : * mut i32 } impl CAL { } impl :: std :: default :: Default for CAL { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAL" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAL { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAL { } unsafe impl :: windows :: Abi for CAL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CALPSTR { pub cElems : u32 , pub pElems : * mut super::super::Foundation:: PSTR } impl CALPSTR { } impl :: std :: default :: Default for CALPSTR { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CALPSTR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CALPSTR" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CALPSTR { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CALPSTR { } unsafe impl :: windows :: Abi for CALPSTR { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CALPWSTR { pub cElems : u32 , pub pElems : * mut super::super::Foundation:: PWSTR } impl CALPWSTR { } impl :: std :: default :: Default for CALPWSTR { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CALPWSTR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CALPWSTR" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CALPWSTR { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CALPWSTR { } unsafe impl :: windows :: Abi for CALPWSTR { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAPROPVARIANT { pub cElems : u32 , pub pElems : * mut PROPVARIANT } impl CAPROPVARIANT { } impl :: std :: default :: Default for CAPROPVARIANT { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAPROPVARIANT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAPROPVARIANT" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAPROPVARIANT { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAPROPVARIANT { } unsafe impl :: windows :: Abi for CAPROPVARIANT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CASCODE { pub cElems : u32 , pub pElems : * mut i32 } impl CASCODE { } impl :: std :: default :: Default for CASCODE { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CASCODE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CASCODE" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CASCODE { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CASCODE { } unsafe impl :: windows :: Abi for CASCODE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAUB { pub cElems : u32 , pub pElems : * mut u8 } impl CAUB { } impl :: std :: default :: Default for CAUB { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAUB { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAUB" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAUB { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAUB { } unsafe impl :: windows :: Abi for CAUB { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAUH { pub cElems : u32 , pub pElems : * mut u64 } impl CAUH { } impl :: std :: default :: Default for CAUH { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAUH { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAUH" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAUH { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAUH { } unsafe impl :: windows :: Abi for CAUH { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAUI { pub cElems : u32 , pub pElems : * mut u16 } impl CAUI { } impl :: std :: default :: Default for CAUI { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAUI { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAUI" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAUI { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAUI { } unsafe impl :: windows :: Abi for CAUI { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAUL { pub cElems : u32 , pub pElems : * mut u32 } impl CAUL { } impl :: std :: default :: Default for CAUL { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAUL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAUL" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAUL { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAUL { } unsafe impl :: windows :: Abi for CAUL { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IStorage ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IStorage { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 11 ,0 ,0 , [ 192 ,0 ,0 ,0 ,0 ,0 ,0 ,70 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IStream ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IStream { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 12 ,0 ,0 , [ 192 ,0 ,0 ,0 ,0 ,0 ,0 ,70 ] , ) ; } impl :: std :: clone :: Clone for PROPVARIANT { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub struct PROPVARIANT { pub Anonymous : PROPVARIANT_0 } impl PROPVARIANT { } impl :: std :: default :: Default for PROPVARIANT { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for PROPVARIANT { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for PROPVARIANT { } unsafe impl :: windows :: Abi for PROPVARIANT { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } impl :: std :: clone :: Clone for PROPVARIANT_0 { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub union PROPVARIANT_0 { pub Anonymous : :: std :: mem :: ManuallyDrop < PROPVARIANT_0_0 > , pub decVal : super::super::System::SystemServices:: DECIMAL } impl PROPVARIANT_0 { } impl :: std :: default :: Default for PROPVARIANT_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for PROPVARIANT_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for PROPVARIANT_0 { } unsafe impl :: windows :: Abi for PROPVARIANT_0 { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } impl :: std :: clone :: Clone for PROPVARIANT_0_0 { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub struct PROPVARIANT_0_0 { pub vt : u16 , pub wReserved1 : u16 , pub wReserved2 : u16 , pub wReserved3 : u16 , pub Anonymous : PROPVARIANT_0_0_0 } impl PROPVARIANT_0_0 { } impl :: std :: default :: Default for PROPVARIANT_0_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for PROPVARIANT_0_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for PROPVARIANT_0_0 { } unsafe impl :: windows :: Abi for PROPVARIANT_0_0 { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } impl :: std :: clone :: Clone for PROPVARIANT_0_0_0 { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub union PROPVARIANT_0_0_0 { pub cVal : super::super::System::SystemServices:: CHAR , pub bVal : u8 , pub iVal : i16 , pub uiVal : u16 , pub lVal : i32 , pub ulVal : u32 , pub intVal : i32 , pub uintVal : u32 , pub hVal : i64 , pub uhVal : u64 , pub fltVal : f32 , pub dblVal : f64 , pub boolVal : i16 , pub __OBSOLETE__VARIANT_BOOL : i16 , pub scode : i32 , pub cyVal : super::super::System::SystemServices:: CY , pub date : f64 , pub filetime : super::super::Foundation:: FILETIME , pub puuid : * mut :: windows :: Guid , pub pclipdata : * mut super::super::System::SystemServices:: CLIPDATA , pub bstrVal : :: std :: mem :: ManuallyDrop < super::super::Foundation:: BSTR > , pub bstrblobVal : super::super::System::SystemServices:: BSTRBLOB , pub blob : super::super::System::Com:: BLOB , pub pszVal : super::super::Foundation:: PSTR , pub pwszVal : super::super::Foundation:: PWSTR , pub punkVal : :: windows :: RawPtr , pub pdispVal : :: windows :: RawPtr , pub pStream : :: windows :: RawPtr , pub pStorage : :: windows :: RawPtr , pub pVersionedStream : * mut :: std :: mem :: ManuallyDrop < VERSIONEDSTREAM > , pub parray : * mut super::super::System::OleAutomation:: SAFEARRAY , pub cac : CAC , pub caub : CAUB , pub cai : CAI , pub caui : CAUI , pub cal : CAL , pub caul : CAUL , pub cah : CAH , pub cauh : CAUH , pub caflt : CAFLT , pub cadbl : CADBL , pub cabool : CABOOL , pub cascode : CASCODE , pub cacy : CACY , pub cadate : CADATE , pub cafiletime : CAFILETIME , pub cauuid : CACLSID , pub caclipdata : CACLIPDATA , pub cabstr : CABSTR , pub cabstrblob : CABSTRBLOB , pub calpstr : CALPSTR , pub calpwstr : CALPWSTR , pub capropvar : CAPROPVARIANT , pub pcVal : super::super::Foundation:: PSTR , pub pbVal : * mut u8 , pub piVal : * mut i16 , pub puiVal : * mut u16 , pub plVal : * mut i32 , pub pulVal : * mut u32 , pub pintVal : * mut i32 , pub puintVal : * mut u32 , pub pfltVal : * mut f32 , pub pdblVal : * mut f64 , pub pboolVal : * mut i16 , pub pdecVal : * mut super::super::System::SystemServices:: DECIMAL , pub pscode : * mut i32 , pub pcyVal : * mut super::super::System::SystemServices:: CY , pub pdate : * mut f64 , pub pbstrVal : * mut :: std :: mem :: ManuallyDrop < super::super::Foundation:: BSTR > , pub ppunkVal : * mut :: windows :: RawPtr , pub ppdispVal : * mut :: windows :: RawPtr , pub pparray : * mut * mut super::super::System::OleAutomation:: SAFEARRAY , pub pvarVal : * mut :: std :: mem :: ManuallyDrop < PROPVARIANT > } impl PROPVARIANT_0_0_0 { } impl :: std :: default :: Default for PROPVARIANT_0_0_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for PROPVARIANT_0_0_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for PROPVARIANT_0_0_0 { } unsafe impl :: windows :: Abi for PROPVARIANT_0_0_0 { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } pub const STGM_READ : i32 = 0i32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct VERSIONEDSTREAM { pub guidVersion : :: windows :: Guid , pub pStream : :: std :: option :: Option < IStream > } impl VERSIONEDSTREAM { } impl :: std :: default :: Default for VERSIONEDSTREAM { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for VERSIONEDSTREAM { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "VERSIONEDSTREAM" ) . field ( "guidVersion" , & self . guidVersion ) . field ( "pStream" , & self . pStream ) . finish ( ) } } impl :: std :: cmp :: PartialEq for VERSIONEDSTREAM { fn eq ( & self , other : & Self ) -> bool { self . guidVersion == other . guidVersion && self . pStream == other . pStream } } impl :: std :: cmp :: Eq for VERSIONEDSTREAM { } unsafe impl :: windows :: Abi for VERSIONEDSTREAM { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod System { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Com { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct BLOB { pub cbSize : u32 , pub pBlobData : * mut u8 } impl BLOB { } impl :: std :: default :: Default for BLOB { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for BLOB { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "BLOB" ) . field ( "cbSize" , & self . cbSize ) . field ( "pBlobData" , & self . pBlobData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for BLOB { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . pBlobData == other . pBlobData } } impl :: std :: cmp :: Eq for BLOB { } unsafe impl :: windows :: Abi for BLOB { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct CLSCTX ( pub u32 ) ; pub const CLSCTX_INPROC_SERVER : CLSCTX = CLSCTX ( 1u32 ) ; pub const CLSCTX_INPROC_HANDLER : CLSCTX = CLSCTX ( 2u32 ) ; pub const CLSCTX_LOCAL_SERVER : CLSCTX = CLSCTX ( 4u32 ) ; pub const CLSCTX_INPROC_SERVER16 : CLSCTX = CLSCTX ( 8u32 ) ; pub const CLSCTX_REMOTE_SERVER : CLSCTX = CLSCTX ( 16u32 ) ; pub const CLSCTX_INPROC_HANDLER16 : CLSCTX = CLSCTX ( 32u32 ) ; pub const CLSCTX_RESERVED1 : CLSCTX = CLSCTX ( 64u32 ) ; pub const CLSCTX_RESERVED2 : CLSCTX = CLSCTX ( 128u32 ) ; pub const CLSCTX_RESERVED3 : CLSCTX = CLSCTX ( 256u32 ) ; pub const CLSCTX_RESERVED4 : CLSCTX = CLSCTX ( 512u32 ) ; pub const CLSCTX_NO_CODE_DOWNLOAD : CLSCTX = CLSCTX ( 1024u32 ) ; pub const CLSCTX_RESERVED5 : CLSCTX = CLSCTX ( 2048u32 ) ; pub const CLSCTX_NO_CUSTOM_MARSHAL : CLSCTX = CLSCTX ( 4096u32 ) ; pub const CLSCTX_ENABLE_CODE_DOWNLOAD : CLSCTX = CLSCTX ( 8192u32 ) ; pub const CLSCTX_NO_FAILURE_LOG : CLSCTX = CLSCTX ( 16384u32 ) ; pub const CLSCTX_DISABLE_AAA : CLSCTX = CLSCTX ( 32768u32 ) ; pub const CLSCTX_ENABLE_AAA : CLSCTX = CLSCTX ( 65536u32 ) ; pub const CLSCTX_FROM_DEFAULT_CONTEXT : CLSCTX = CLSCTX ( 131072u32 ) ; pub const CLSCTX_ACTIVATE_X86_SERVER : CLSCTX = CLSCTX ( 262144u32 ) ; pub const CLSCTX_ACTIVATE_32_BIT_SERVER : CLSCTX = CLSCTX ( 262144u32 ) ; pub const CLSCTX_ACTIVATE_64_BIT_SERVER : CLSCTX = CLSCTX ( 524288u32 ) ; pub const CLSCTX_ENABLE_CLOAKING : CLSCTX = CLSCTX ( 1048576u32 ) ; pub const CLSCTX_APPCONTAINER : CLSCTX = CLSCTX ( 4194304u32 ) ; pub const CLSCTX_ACTIVATE_AAA_AS_IU : CLSCTX = CLSCTX ( 8388608u32 ) ; pub const CLSCTX_RESERVED6 : CLSCTX = CLSCTX ( 16777216u32 ) ; pub const CLSCTX_ACTIVATE_ARM32_SERVER : CLSCTX = CLSCTX ( 33554432u32 ) ; pub const CLSCTX_PS_DLL : CLSCTX = CLSCTX ( 2147483648u32 ) ; pub const CLSCTX_ALL : CLSCTX = CLSCTX ( 23u32 ) ; pub const CLSCTX_SERVER : CLSCTX = CLSCTX ( 21u32 ) ; impl :: std :: convert :: From < u32 > for CLSCTX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CLSCTX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CLSCTX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CLSCTX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CLSCTX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CLSCTX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for CLSCTX { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } pub unsafe fn CLSIDFromProgID < 'a , > ( lpszprogid : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < :: windows :: Guid > { # [ cfg ( windows ) ] { # [ link ( name ="ole32" ) ] extern "system" { fn CLSIDFromProgID ( lpszprogid : super::super::Foundation:: PWSTR , lpclsid : * mut :: windows :: Guid ) -> :: windows :: HRESULT ; } let mut result__ : < :: windows :: Guid as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; CLSIDFromProgID ( lpszprogid . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < :: windows :: Guid > ( result__ ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct COINIT ( pub u32 ) ; pub const COINIT_APARTMENTTHREADED : COINIT = COINIT ( 2u32 ) ; pub const COINIT_MULTITHREADED : COINIT = COINIT ( 0u32 ) ; pub const COINIT_DISABLE_OLE1DDE : COINIT = COINIT ( 4u32 ) ; pub const COINIT_SPEED_OVER_MEMORY : COINIT = COINIT ( 8u32 ) ; impl :: std :: convert :: From < u32 > for COINIT { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COINIT { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for COINIT { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for COINIT { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for COINIT { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for COINIT { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for COINIT { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } pub unsafe fn CoCreateInstance < 'a , T : :: windows :: Interface > ( rclsid : * const :: windows :: Guid , punkouter : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , dwclscontext : CLSCTX , ) -> :: windows :: Result < T > { # [ cfg ( windows ) ] { # [ link ( name ="ole32" ) ] extern "system" { fn CoCreateInstance ( rclsid : * const :: windows :: Guid , punkouter : :: windows :: RawPtr , dwclscontext : CLSCTX , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void ) -> :: windows :: HRESULT ; } let mut result__ = :: std :: option :: Option :: None ; CoCreateInstance ( :: std :: mem :: transmute ( rclsid ) , punkouter . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwclscontext ) , & < T as :: windows :: Interface > :: IID , & mut result__ as * mut _ as * mut _ ) . and_some ( result__ ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CoInitializeEx < > ( pvreserved : * const :: std :: ffi :: c_void , dwcoinit : COINIT , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="ole32" ) ] extern "system" { fn CoInitializeEx ( pvreserved : * const :: std :: ffi :: c_void , dwcoinit : COINIT ) -> :: windows :: HRESULT ; } CoInitializeEx ( :: std :: mem :: transmute ( pvreserved ) , :: std :: mem :: transmute ( dwcoinit ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CoUninitialize < > ( ) { # [ cfg ( windows ) ] { # [ link ( name ="ole32" ) ] extern "system" { fn CoUninitialize ( ) ; } :: std :: mem :: transmute ( CoUninitialize ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Diagnostics { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Debug { pub unsafe fn GetLastError < > ( ) -> WIN32_ERROR { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn GetLastError ( ) -> WIN32_ERROR ; } :: std :: mem :: transmute ( GetLastError ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WIN32_ERROR ( pub u32 ) ; impl :: std :: convert :: From < u32 > for WIN32_ERROR { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WIN32_ERROR { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WIN32_ERROR { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WIN32_ERROR { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WIN32_ERROR { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WIN32_ERROR { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for WIN32_ERROR { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } impl :: std :: convert :: From < WIN32_ERROR > for :: windows :: HRESULT { fn from ( value : WIN32_ERROR ) -> Self { Self ( if value . 0 as i32 <= 0 { value . 0 } else { ( value . 0 & 0x0000_FFFF ) | ( 7 << 16 ) | 0x8000_0000 } ) } } } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod OleAutomation { # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDispatch ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDispatch { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 132096 ,0 ,0 , [ 192 ,0 ,0 ,0 ,0 ,0 ,0 ,70 ] , ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SAFEARRAY { pub cDims : u16 , pub fFeatures : u16 , pub cbElements : u32 , pub cLocks : u32 , pub pvData : * mut :: std :: ffi :: c_void , pub rgsabound : [ SAFEARRAYBOUND ;1 ] } impl SAFEARRAY { } impl :: std :: default :: Default for SAFEARRAY { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for SAFEARRAY { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SAFEARRAY" ) . field ( "cDims" , & self . cDims ) . field ( "fFeatures" , & self . fFeatures ) . field ( "cbElements" , & self . cbElements ) . field ( "cLocks" , & self . cLocks ) . field ( "pvData" , & self . pvData ) . field ( "rgsabound" , & self . rgsabound ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SAFEARRAY { fn eq ( & self , other : & Self ) -> bool { self . cDims == other . cDims && self . fFeatures == other . fFeatures && self . cbElements == other . cbElements && self . cLocks == other . cLocks && self . pvData == other . pvData && self . rgsabound == other . rgsabound } } impl :: std :: cmp :: Eq for SAFEARRAY { } unsafe impl :: windows :: Abi for SAFEARRAY { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SAFEARRAYBOUND { pub cElements : u32 , pub lLbound : i32 } impl SAFEARRAYBOUND { } impl :: std :: default :: Default for SAFEARRAYBOUND { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for SAFEARRAYBOUND { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SAFEARRAYBOUND" ) . field ( "cElements" , & self . cElements ) . field ( "lLbound" , & self . lLbound ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SAFEARRAYBOUND { fn eq ( & self , other : & Self ) -> bool { self . cElements == other . cElements && self . lLbound == other . lLbound } } impl :: std :: cmp :: Eq for SAFEARRAYBOUND { } unsafe impl :: windows :: Abi for SAFEARRAYBOUND { type Abi = Self ; type DefaultType = Self ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod PropertiesSystem { # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IPropertyStore ( :: windows :: IUnknown ) ; impl IPropertyStore { pub unsafe fn GetCount < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn GetAt < > ( & self , iprop : u32 , ) -> :: windows :: Result < PROPERTYKEY > { let mut result__ : < PROPERTYKEY as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( iprop ) , & mut result__ ) . from_abi :: < PROPERTYKEY > ( result__ ) } pub unsafe fn GetValue < > ( & self , key : * const PROPERTYKEY , ) -> :: windows :: Result < super::super::Storage::StructuredStorage:: PROPVARIANT > { let mut result__ : < super::super::Storage::StructuredStorage:: PROPVARIANT as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( key ) , & mut result__ ) . from_abi :: < super::super::Storage::StructuredStorage:: PROPVARIANT > ( result__ ) } pub unsafe fn SetValue < > ( & self , key : * const PROPERTYKEY , propvar : * const super::super::Storage::StructuredStorage:: PROPVARIANT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( key ) , :: std :: mem :: transmute ( propvar ) , ) . ok ( ) } pub unsafe fn Commit < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IPropertyStore { type Vtable = IPropertyStore_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2288881387 ,36082 ,17478 , [ 141 ,2 ,205 ,186 ,29 ,189 ,207 ,153 ] , ) ; } impl :: std :: convert :: From < IPropertyStore > for :: windows :: IUnknown { fn from ( value : IPropertyStore ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IPropertyStore > for :: windows :: IUnknown { fn from ( value : & IPropertyStore ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IPropertyStore { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IPropertyStore { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IPropertyStore_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cprops : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iprop : u32 , pkey : * mut PROPERTYKEY , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , key : * const PROPERTYKEY , pv : * mut :: std :: mem :: ManuallyDrop < super::super::Storage::StructuredStorage:: PROPVARIANT > , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , key : * const PROPERTYKEY , propvar : * const :: std :: mem :: ManuallyDrop < super::super::Storage::StructuredStorage:: PROPVARIANT > , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct PROPERTYKEY { pub fmtid : :: windows :: Guid , pub pid : u32 } impl PROPERTYKEY { } impl :: std :: default :: Default for PROPERTYKEY { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for PROPERTYKEY { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PROPERTYKEY" ) . field ( "fmtid" , & self . fmtid ) . field ( "pid" , & self . pid ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PROPERTYKEY { fn eq ( & self , other : & Self ) -> bool { self . fmtid == other . fmtid && self . pid == other . pid } } impl :: std :: cmp :: Eq for PROPERTYKEY { } unsafe impl :: windows :: Abi for PROPERTYKEY { type Abi = Self ; type DefaultType = Self ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod SystemServices { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct BSTRBLOB { pub cbSize : u32 , pub pData : * mut u8 } impl BSTRBLOB { } impl :: std :: default :: Default for BSTRBLOB { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for BSTRBLOB { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "BSTRBLOB" ) . field ( "cbSize" , & self . cbSize ) . field ( "pData" , & self . pData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for BSTRBLOB { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . pData == other . pData } } impl :: std :: cmp :: Eq for BSTRBLOB { } unsafe impl :: windows :: Abi for BSTRBLOB { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct CHAR ( pub u8 ) ; impl :: std :: default :: Default for CHAR { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for CHAR { } unsafe impl :: windows :: Abi for CHAR { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CLIPDATA { pub cbSize : u32 , pub ulClipFmt : i32 , pub pClipData : * mut u8 } impl CLIPDATA { } impl :: std :: default :: Default for CLIPDATA { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CLIPDATA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CLIPDATA" ) . field ( "cbSize" , & self . cbSize ) . field ( "ulClipFmt" , & self . ulClipFmt ) . field ( "pClipData" , & self . pClipData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CLIPDATA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . ulClipFmt == other . ulClipFmt && self . pClipData == other . pClipData } } impl :: std :: cmp :: Eq for CLIPDATA { } unsafe impl :: windows :: Abi for CLIPDATA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union CY { pub Anonymous : CY_0 , pub int64 : i64 } impl CY { } impl :: std :: default :: Default for CY { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for CY { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for CY { } unsafe impl :: windows :: Abi for CY { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CY_0 { pub Lo : u32 , pub Hi : i32 } impl CY_0 { } impl :: std :: default :: Default for CY_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CY_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "Lo" , & self . Lo ) . field ( "Hi" , & self . Hi ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CY_0 { fn eq ( & self , other : & Self ) -> bool { self . Lo == other . Lo && self . Hi == other . Hi } } impl :: std :: cmp :: Eq for CY_0 { } unsafe impl :: windows :: Abi for CY_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DECIMAL { pub wReserved : u16 , pub Anonymous1 : DECIMAL_0 , pub Hi32 : u32 , pub Anonymous2 : DECIMAL_1 } impl DECIMAL { } impl :: std :: default :: Default for DECIMAL { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for DECIMAL { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DECIMAL { } unsafe impl :: windows :: Abi for DECIMAL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DECIMAL_0 { pub Anonymous : DECIMAL_0_0 , pub signscale : u16 } impl DECIMAL_0 { } impl :: std :: default :: Default for DECIMAL_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for DECIMAL_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DECIMAL_0 { } unsafe impl :: windows :: Abi for DECIMAL_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DECIMAL_0_0 { pub scale : u8 , pub sign : u8 } impl DECIMAL_0_0 { } impl :: std :: default :: Default for DECIMAL_0_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for DECIMAL_0_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "scale" , & self . scale ) . field ( "sign" , & self . sign ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DECIMAL_0_0 { fn eq ( & self , other : & Self ) -> bool { self . scale == other . scale && self . sign == other . sign } } impl :: std :: cmp :: Eq for DECIMAL_0_0 { } unsafe impl :: windows :: Abi for DECIMAL_0_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DECIMAL_1 { pub Anonymous : DECIMAL_1_0 , pub Lo64 : u64 } impl DECIMAL_1 { } impl :: std :: default :: Default for DECIMAL_1 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for DECIMAL_1 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DECIMAL_1 { } unsafe impl :: windows :: Abi for DECIMAL_1 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DECIMAL_1_0 { pub Lo32 : u32 , pub Mid32 : u32 } impl DECIMAL_1_0 { } impl :: std :: default :: Default for DECIMAL_1_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for DECIMAL_1_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "Lo32" , & self . Lo32 ) . field ( "Mid32" , & self . Mid32 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DECIMAL_1_0 { fn eq ( & self , other : & Self ) -> bool { self . Lo32 == other . Lo32 && self . Mid32 == other . Mid32 } } impl :: std :: cmp :: Eq for DECIMAL_1_0 { } unsafe impl :: windows :: Abi for DECIMAL_1_0 { type Abi = Self ; type DefaultType = Self ; } pub const DEVPKEY_Device_FriendlyName : super::PropertiesSystem:: PROPERTYKEY = super::PropertiesSystem:: PROPERTYKEY { fmtid : :: windows :: Guid :: from_values ( 2757502286 ,57116 ,20221 , [ 128 ,32 ,103 ,209 ,70 ,168 ,80 ,224 ] , ) , pid : 14u32 , } ; } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Threading { pub unsafe fn CancelWaitableTimer < 'a , > ( htimer : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn CancelWaitableTimer ( htimer : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( CancelWaitableTimer ( htimer . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateEventW < 'a , > ( lpeventattributes : * const super::super::Security:: SECURITY_ATTRIBUTES , bmanualreset : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , binitialstate : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn CreateEventW ( lpeventattributes : * const super::super::Security:: SECURITY_ATTRIBUTES , bmanualreset : super::super::Foundation:: BOOL , binitialstate : super::super::Foundation:: BOOL , lpname : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HANDLE ; } :: std :: mem :: transmute ( CreateEventW ( :: std :: mem :: transmute ( lpeventattributes ) , bmanualreset . into_param ( ) . abi ( ) , binitialstate . into_param ( ) . abi ( ) , lpname . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateWaitableTimerW < 'a , > ( lptimerattributes : * const super::super::Security:: SECURITY_ATTRIBUTES , bmanualreset : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lptimername : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn CreateWaitableTimerW ( lptimerattributes : * const super::super::Security:: SECURITY_ATTRIBUTES , bmanualreset : super::super::Foundation:: BOOL , lptimername : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HANDLE ; } :: std :: mem :: transmute ( CreateWaitableTimerW ( :: std :: mem :: transmute ( lptimerattributes ) , bmanualreset . into_param ( ) . abi ( ) , lptimername . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub type PTIMERAPCROUTINE = unsafe extern "system" fn ( lpargtocompletionroutine : * const :: std :: ffi :: c_void , dwtimerlowvalue : u32 , dwtimerhighvalue : u32 ) ; pub unsafe fn SetWaitableTimer < 'a , > ( htimer : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , lpduetime : * const i64 , lperiod : i32 , pfncompletionroutine : :: std :: option :: Option < PTIMERAPCROUTINE > , lpargtocompletionroutine : * const :: std :: ffi :: c_void , fresume : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn SetWaitableTimer ( htimer : super::super::Foundation:: HANDLE , lpduetime : * const i64 , lperiod : i32 , pfncompletionroutine : :: windows :: RawPtr , lpargtocompletionroutine : * const :: std :: ffi :: c_void , fresume : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( SetWaitableTimer ( htimer . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpduetime ) , :: std :: mem :: transmute ( lperiod ) , :: std :: mem :: transmute ( pfncompletionroutine ) , :: std :: mem :: transmute ( lpargtocompletionroutine ) , fresume . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WAIT_RETURN_CAUSE ( pub u32 ) ; pub const WAIT_OBJECT_0 : WAIT_RETURN_CAUSE = WAIT_RETURN_CAUSE ( 0u32 ) ; pub const WAIT_ABANDONED : WAIT_RETURN_CAUSE = WAIT_RETURN_CAUSE ( 128u32 ) ; pub const WAIT_ABANDONED_0 : WAIT_RETURN_CAUSE = WAIT_RETURN_CAUSE ( 128u32 ) ; pub const WAIT_IO_COMPLETION : WAIT_RETURN_CAUSE = WAIT_RETURN_CAUSE ( 192u32 ) ; pub const WAIT_TIMEOUT : WAIT_RETURN_CAUSE = WAIT_RETURN_CAUSE ( 258u32 ) ; pub const WAIT_FAILED : WAIT_RETURN_CAUSE = WAIT_RETURN_CAUSE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for WAIT_RETURN_CAUSE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WAIT_RETURN_CAUSE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WAIT_RETURN_CAUSE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WAIT_RETURN_CAUSE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WAIT_RETURN_CAUSE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WAIT_RETURN_CAUSE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for WAIT_RETURN_CAUSE { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } pub unsafe fn WaitForMultipleObjects < 'a , > ( ncount : u32 , lphandles : * const super::super::Foundation:: HANDLE , bwaitall : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwmilliseconds : u32 , ) -> WAIT_RETURN_CAUSE { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn WaitForMultipleObjects ( ncount : u32 , lphandles : * const super::super::Foundation:: HANDLE , bwaitall : super::super::Foundation:: BOOL , dwmilliseconds : u32 ) -> WAIT_RETURN_CAUSE ; } :: std :: mem :: transmute ( WaitForMultipleObjects ( :: std :: mem :: transmute ( ncount ) , :: std :: mem :: transmute ( lphandles ) , bwaitall . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwmilliseconds ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } } } } }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Box::<T>::from_raw` that must be used
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/bindings-b28aefdd560d4218/out/windows.rs:1:10206
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...aram { if ! value . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: Into...
[INFO] [stdout]   |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]   |
[INFO] [stdout] 1 | # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Windows { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Win32 { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Foundation { # [ repr ( transparent ) ] # [ derive ( :: std :: default :: Default , :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct BOOL ( pub i32 ) ; unsafe impl :: windows :: Abi for BOOL { type Abi = Self ; type DefaultType = Self ; } impl BOOL { # [ inline ] pub fn as_bool ( self ) -> bool { ! ( self . 0 == 0 ) } # [ inline ] pub fn ok ( self ) -> :: windows :: Result < ( ) > { if self . as_bool ( ) { Ok ( ( ) ) } else { Err ( :: windows :: Error :: from_win32 ( ) ) } } # [ inline ] # [ track_caller ] pub fn unwrap ( self ) { self . ok ( ) . unwrap ( ) ; } # [ inline ] # [ track_caller ] pub fn expect ( self , msg : & str ) { self . ok ( ) . expect ( msg ) ; } } impl :: std :: convert :: From < BOOL > for bool { fn from ( value : BOOL ) -> Self { value . as_bool ( ) } } impl :: std :: convert :: From < & BOOL > for bool { fn from ( value : & BOOL ) -> Self { value . as_bool ( ) } } impl :: std :: convert :: From < bool > for BOOL { fn from ( value : bool ) -> Self { if value { BOOL ( 1 ) } else { BOOL ( 0 ) } } } impl :: std :: convert :: From < & bool > for BOOL { fn from ( value : & bool ) -> Self { ( * value ) . into ( ) } } impl :: std :: cmp :: PartialEq < bool > for BOOL { fn eq ( & self , other : & bool ) -> bool { self . as_bool ( ) == * other } } impl :: std :: cmp :: PartialEq < BOOL > for bool { fn eq ( & self , other : & BOOL ) -> bool { * self == other . as_bool ( ) } } impl std :: ops :: Not for BOOL { type Output = Self ; fn not ( self ) -> Self :: Output { if self . as_bool ( ) { BOOL ( 0 ) } else { BOOL ( 1 ) } } } impl < 'a > :: windows :: IntoParam < 'a , BOOL > for bool { fn into_param ( self ) -> :: windows :: Param < 'a , BOOL > { :: windows :: Param :: Owned ( self . into ( ) ) } } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: Eq ) ] pub struct BSTR ( pub * mut u16 ) ; impl BSTR { # [ doc = r" Create an empty `BSTR`." ] # [ doc = r"" ] # [ doc = r" This function does not allocate memory." ] pub fn new ( ) -> Self { Self ( std :: ptr :: null_mut ( ) ) } # [ doc = r" Returns `true` if the string is empty." ] pub fn is_empty ( & self ) -> bool { self . 0 . is_null ( ) } # [ doc = r" Returns the length of the string." ] pub fn len ( & self ) -> usize { if self . is_empty ( ) { return 0 ; } unsafe { SysStringLen ( self ) as usize } } # [ doc = r" Create a `BSTR` from a slice of 16-bit characters." ] pub fn from_wide ( value : & [ u16 ] ) -> Self { if value . len ( ) == 0 { return Self ( :: std :: ptr :: null_mut ( ) ) ; } unsafe { SysAllocStringLen ( PWSTR ( value . as_ptr ( ) as _ ) , value . len ( ) as u32 , ) } } # [ doc = r" Get the string as 16-bit characters." ] pub fn as_wide ( & self ) -> & [ u16 ] { if self . 0 . is_null ( ) { return & [ ] ; } unsafe { :: std :: slice :: from_raw_parts ( self . 0 as * const u16 , self . len ( ) ) } } } impl :: std :: clone :: Clone for BSTR { fn clone ( & self ) -> Self { Self :: from_wide ( self . as_wide ( ) ) } } impl :: std :: convert :: From < & str > for BSTR { fn from ( value : & str ) -> Self { let value : :: std :: vec :: Vec < u16 > = value . encode_utf16 ( ) . collect ( ) ; Self :: from_wide ( & value ) } } impl :: std :: convert :: From < :: std :: string :: String > for BSTR { fn from ( value : :: std :: string :: String ) -> Self { value . as_str ( ) . into ( ) } } impl :: std :: convert :: From < & :: std :: string :: String > for BSTR { fn from ( value : & :: std :: string :: String ) -> Self { value . as_str ( ) . into ( ) } } impl < 'a > :: std :: convert :: TryFrom < & 'a BSTR > for :: std :: string :: String { type Error = :: std :: string :: FromUtf16Error ; fn try_from ( value : & BSTR ) -> :: std :: result :: Result < Self , Self :: Error > { :: std :: string :: String :: from_utf16 ( value . as_wide ( ) ) } } impl :: std :: convert :: TryFrom < BSTR > for :: std :: string :: String { type Error = :: std :: string :: FromUtf16Error ; fn try_from ( value : BSTR ) -> :: std :: result :: Result < Self , Self :: Error > { :: std :: string :: String :: try_from ( & value ) } } impl :: std :: default :: Default for BSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } impl :: std :: fmt :: Display for BSTR { fn fmt ( & self , f : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { use :: std :: fmt :: Write ; for c in :: std :: char :: decode_utf16 ( self . as_wide ( ) . iter ( ) . cloned ( ) ) { f . write_char ( c . map_err ( | _ | :: std :: fmt :: Error ) ? ) ? } Ok ( ( ) ) } } impl :: std :: fmt :: Debug for BSTR { fn fmt ( & self , f : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { :: std :: write ! ( f , "{}" , self ) } } impl :: std :: cmp :: PartialEq for BSTR { fn eq ( & self , other : & Self ) -> bool { self . as_wide ( ) == other . as_wide ( ) } } impl :: std :: cmp :: PartialEq < :: std :: string :: String > for BSTR { fn eq ( & self , other : & :: std :: string :: String ) -> bool { self == other . as_str ( ) } } impl :: std :: cmp :: PartialEq < str > for BSTR { fn eq ( & self , other : & str ) -> bool { self == other } } impl :: std :: cmp :: PartialEq < & str > for BSTR { fn eq ( & self , other : && str ) -> bool { self . as_wide ( ) . iter ( ) . copied ( ) . eq ( other . encode_utf16 ( ) ) } } impl :: std :: cmp :: PartialEq < BSTR > for & str { fn eq ( & self , other : & BSTR ) -> bool { other == self } } impl :: std :: ops :: Drop for BSTR { fn drop ( & mut self ) { if ! self . 0 . is_null ( ) { unsafe { SysFreeString ( self as & Self ) } } } } unsafe impl :: windows :: Abi for BSTR { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } pub type BSTR_abi = * mut u16 ; pub unsafe fn CloseHandle < 'a , > ( hobject : impl :: windows :: IntoParam < 'a , HANDLE > , ) -> BOOL { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn CloseHandle ( hobject : HANDLE ) -> BOOL ; } :: std :: mem :: transmute ( CloseHandle ( hobject . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct FILETIME { pub dwLowDateTime : u32 , pub dwHighDateTime : u32 } impl FILETIME { } impl :: std :: default :: Default for FILETIME { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for FILETIME { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FILETIME" ) . field ( "dwLowDateTime" , & self . dwLowDateTime ) . field ( "dwHighDateTime" , & self . dwHighDateTime ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FILETIME { fn eq ( & self , other : & Self ) -> bool { self . dwLowDateTime == other . dwLowDateTime && self . dwHighDateTime == other . dwHighDateTime } } impl :: std :: cmp :: Eq for FILETIME { } unsafe impl :: windows :: Abi for FILETIME { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: default :: Default , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HANDLE ( pub isize ) ; unsafe impl :: windows :: Handle for HANDLE { fn is_invalid ( & self ) -> bool { self . 0 == 0 || self . 0 == - 1 } fn ok ( self ) -> :: windows :: Result < Self > { if self . is_invalid ( ) { Err ( :: windows :: Error :: from_win32 ( ) ) } else { Ok ( self ) } } } unsafe impl :: windows :: Abi for HANDLE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct PSTR ( pub * mut u8 ) ; impl PSTR { pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } unsafe impl :: windows :: Abi for PSTR { type Abi = Self ; type DefaultType = Self ; unsafe fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for & str { fn into_param ( self ) -> :: windows :: Param < 'a , PSTR > { :: windows :: Param :: Boxed ( PSTR ( :: std :: boxed :: Box :: < [ u8 ] > :: into_raw ( self . bytes ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u8 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for String { fn into_param ( self ) -> :: windows :: Param < 'a , PSTR > { :: windows :: Param :: Boxed ( PSTR ( :: std :: boxed :: Box :: < [ u8 ] > :: into_raw ( self . bytes ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u8 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct PWSTR ( pub * mut u16 ) ; impl PWSTR { pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PWSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } unsafe impl :: windows :: Abi for PWSTR { type Abi = Self ; type DefaultType = Self ; unsafe fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . is_null ( ) { unsafe { let _ = :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for & str { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_utf16 ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for String { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_utf16 ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ cfg ( windows ) ] impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for & :: std :: ffi :: OsStr { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { use std :: os :: windows :: ffi :: OsStrExt ; :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_wide ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ cfg ( windows ) ] impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for :: std :: ffi :: OsString { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { use std :: os :: windows :: ffi :: OsStrExt ; :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_wide ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } pub unsafe fn SysAllocStringLen < 'a , > ( strin : impl :: windows :: IntoParam < 'a , PWSTR > , ui : u32 , ) -> BSTR { # [ cfg ( windows ) ] { # [ link ( name ="oleaut32" ) ] extern "system" { fn SysAllocStringLen ( strin : PWSTR , ui : u32 ) -> BSTR ; } :: std :: mem :: transmute ( SysAllocStringLen ( strin . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ui ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SysFreeString < 'a , > ( bstrstring : impl :: windows :: IntoParam < 'a , BSTR > , ) { # [ cfg ( windows ) ] { # [ link ( name ="oleaut32" ) ] extern "system" { fn SysFreeString ( bstrstring : :: std :: mem :: ManuallyDrop < BSTR > ) ; } :: std :: mem :: transmute ( SysFreeString ( bstrstring . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SysStringLen < 'a , > ( pbstr : impl :: windows :: IntoParam < 'a , BSTR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="oleaut32" ) ] extern "system" { fn SysStringLen ( pbstr : :: std :: mem :: ManuallyDrop < BSTR > ) -> u32 ; } :: std :: mem :: transmute ( SysStringLen ( pbstr . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Media { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Audio { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod CoreAudio { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct AUDCLNT_SHAREMODE ( pub i32 ) ; pub const AUDCLNT_SHAREMODE_SHARED : AUDCLNT_SHAREMODE = AUDCLNT_SHAREMODE ( 0i32 ) ; pub const AUDCLNT_SHAREMODE_EXCLUSIVE : AUDCLNT_SHAREMODE = AUDCLNT_SHAREMODE ( 1i32 ) ; impl :: std :: convert :: From < i32 > for AUDCLNT_SHAREMODE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for AUDCLNT_SHAREMODE { type Abi = Self ; type DefaultType = Self ; } pub const AUDCLNT_STREAMFLAGS_EVENTCALLBACK : u32 = 262144u32 ; pub const AUDCLNT_STREAMFLAGS_LOOPBACK : u32 = 131072u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct AUDCLNT_STREAMOPTIONS ( pub u32 ) ; pub const AUDCLNT_STREAMOPTIONS_NONE : AUDCLNT_STREAMOPTIONS = AUDCLNT_STREAMOPTIONS ( 0u32 ) ; pub const AUDCLNT_STREAMOPTIONS_RAW : AUDCLNT_STREAMOPTIONS = AUDCLNT_STREAMOPTIONS ( 1u32 ) ; pub const AUDCLNT_STREAMOPTIONS_MATCH_FORMAT : AUDCLNT_STREAMOPTIONS = AUDCLNT_STREAMOPTIONS ( 2u32 ) ; pub const AUDCLNT_STREAMOPTIONS_AMBISONICS : AUDCLNT_STREAMOPTIONS = AUDCLNT_STREAMOPTIONS ( 4u32 ) ; impl :: std :: convert :: From < u32 > for AUDCLNT_STREAMOPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for AUDCLNT_STREAMOPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for AUDCLNT_STREAMOPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for AUDCLNT_STREAMOPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for AUDCLNT_STREAMOPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for AUDCLNT_STREAMOPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for AUDCLNT_STREAMOPTIONS { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct AUDIO_STREAM_CATEGORY ( pub i32 ) ; pub const AudioCategory_Other : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 0i32 ) ; pub const AudioCategory_ForegroundOnlyMedia : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 1i32 ) ; pub const AudioCategory_Communications : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 3i32 ) ; pub const AudioCategory_Alerts : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 4i32 ) ; pub const AudioCategory_SoundEffects : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 5i32 ) ; pub const AudioCategory_GameEffects : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 6i32 ) ; pub const AudioCategory_GameMedia : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 7i32 ) ; pub const AudioCategory_GameChat : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 8i32 ) ; pub const AudioCategory_Speech : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 9i32 ) ; pub const AudioCategory_Movie : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 10i32 ) ; pub const AudioCategory_Media : AUDIO_STREAM_CATEGORY = AUDIO_STREAM_CATEGORY ( 11i32 ) ; impl :: std :: convert :: From < i32 > for AUDIO_STREAM_CATEGORY { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for AUDIO_STREAM_CATEGORY { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct AudioClientProperties { pub cbSize : u32 , pub bIsOffload : super::super::super::Foundation:: BOOL , pub eCategory : AUDIO_STREAM_CATEGORY , pub Options : AUDCLNT_STREAMOPTIONS } impl AudioClientProperties { } impl :: std :: default :: Default for AudioClientProperties { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for AudioClientProperties { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "AudioClientProperties" ) . field ( "cbSize" , & self . cbSize ) . field ( "bIsOffload" , & self . bIsOffload ) . field ( "eCategory" , & self . eCategory ) . field ( "Options" , & self . Options ) . finish ( ) } } impl :: std :: cmp :: PartialEq for AudioClientProperties { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . bIsOffload == other . bIsOffload && self . eCategory == other . eCategory && self . Options == other . Options } } impl :: std :: cmp :: Eq for AudioClientProperties { } unsafe impl :: windows :: Abi for AudioClientProperties { type Abi = Self ; type DefaultType = Self ; } pub const DEVICE_STATE_ACTIVE : u32 = 1u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EDataFlow ( pub i32 ) ; pub const eRender : EDataFlow = EDataFlow ( 0i32 ) ; pub const eCapture : EDataFlow = EDataFlow ( 1i32 ) ; pub const eAll : EDataFlow = EDataFlow ( 2i32 ) ; pub const EDataFlow_enum_count : EDataFlow = EDataFlow ( 3i32 ) ; impl :: std :: convert :: From < i32 > for EDataFlow { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EDataFlow { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct ERole ( pub i32 ) ; pub const eConsole : ERole = ERole ( 0i32 ) ; pub const eMultimedia : ERole = ERole ( 1i32 ) ; pub const eCommunications : ERole = ERole ( 2i32 ) ; pub const ERole_enum_count : ERole = ERole ( 3i32 ) ; impl :: std :: convert :: From < i32 > for ERole { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for ERole { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IAudioCaptureClient ( :: windows :: IUnknown ) ; impl IAudioCaptureClient { pub unsafe fn GetBuffer < > ( & self , ppdata : * mut * mut u8 , pnumframestoread : * mut u32 , pdwflags : * mut u32 , pu64deviceposition : * mut u64 , pu64qpcposition : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( ppdata ) , :: std :: mem :: transmute ( pnumframestoread ) , :: std :: mem :: transmute ( pdwflags ) , :: std :: mem :: transmute ( pu64deviceposition ) , :: std :: mem :: transmute ( pu64qpcposition ) , ) . ok ( ) } pub unsafe fn ReleaseBuffer < > ( & self , numframesread : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( numframesread ) , ) . ok ( ) } pub unsafe fn GetNextPacketSize < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } } unsafe impl :: windows :: Interface for IAudioCaptureClient { type Vtable = IAudioCaptureClient_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3366829412 ,59166 ,18592 , [ 164 ,222 ,24 ,92 ,57 ,92 ,211 ,23 ] , ) ; } impl :: std :: convert :: From < IAudioCaptureClient > for :: windows :: IUnknown { fn from ( value : IAudioCaptureClient ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioCaptureClient > for :: windows :: IUnknown { fn from ( value : & IAudioCaptureClient ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IAudioCaptureClient { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IAudioCaptureClient { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IAudioCaptureClient_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppdata : * mut * mut u8 , pnumframestoread : * mut u32 , pdwflags : * mut u32 , pu64deviceposition : * mut u64 , pu64qpcposition : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , numframesread : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumframesinnextpacket : * mut u32 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IAudioClient ( :: windows :: IUnknown ) ; impl IAudioClient { pub unsafe fn Initialize < > ( & self , sharemode : AUDCLNT_SHAREMODE , streamflags : u32 , hnsbufferduration : i64 , hnsperiodicity : i64 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( sharemode ) , :: std :: mem :: transmute ( streamflags ) , :: std :: mem :: transmute ( hnsbufferduration ) , :: std :: mem :: transmute ( hnsperiodicity ) , :: std :: mem :: transmute ( pformat ) , :: std :: mem :: transmute ( audiosessionguid ) , ) . ok ( ) } pub unsafe fn GetBufferSize < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn GetStreamLatency < > ( & self , ) -> :: windows :: Result < i64 > { let mut result__ : < i64 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < i64 > ( result__ ) } pub unsafe fn GetCurrentPadding < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn IsFormatSupported < > ( & self , sharemode : AUDCLNT_SHAREMODE , pformat : * const super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: Result < * mut super::super::Multimedia:: WAVEFORMATEX > { let mut result__ : < * mut super::super::Multimedia:: WAVEFORMATEX as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( sharemode ) , :: std :: mem :: transmute ( pformat ) , & mut result__ ) . from_abi :: < * mut super::super::Multimedia:: WAVEFORMATEX > ( result__ ) } pub unsafe fn GetMixFormat < > ( & self , ) -> :: windows :: Result < * mut super::super::Multimedia:: WAVEFORMATEX > { let mut result__ : < * mut super::super::Multimedia:: WAVEFORMATEX as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < * mut super::super::Multimedia:: WAVEFORMATEX > ( result__ ) } pub unsafe fn GetDevicePeriod < > ( & self , phnsdefaultdeviceperiod : * mut i64 , phnsminimumdeviceperiod : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( phnsdefaultdeviceperiod ) , :: std :: mem :: transmute ( phnsminimumdeviceperiod ) , ) . ok ( ) } pub unsafe fn Start < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn Reset < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn SetEventHandle < 'a , > ( & self , eventhandle : impl :: windows :: IntoParam < 'a , super::super::super::Foundation:: HANDLE > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: std :: mem :: transmute_copy ( self ) , eventhandle . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetService < > ( & self , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( ppv ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IAudioClient { type Vtable = IAudioClient_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 481930572 ,56314 ,19506 , [ 177 ,120 ,194 ,245 ,104 ,167 ,3 ,178 ] , ) ; } impl :: std :: convert :: From < IAudioClient > for :: windows :: IUnknown { fn from ( value : IAudioClient ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioClient > for :: windows :: IUnknown { fn from ( value : & IAudioClient ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IAudioClient { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IAudioClient { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IAudioClient_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sharemode : AUDCLNT_SHAREMODE , streamflags : u32 , hnsbufferduration : i64 , hnsperiodicity : i64 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumbufferframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , phnslatency : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumpaddingframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sharemode : AUDCLNT_SHAREMODE , pformat : * const super::super::Multimedia:: WAVEFORMATEX , ppclosestmatch : * mut * mut super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppdeviceformat : * mut * mut super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , phnsdefaultdeviceperiod : * mut i64 , phnsminimumdeviceperiod : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandle : super::super::super::Foundation:: HANDLE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IAudioClient2 ( :: windows :: IUnknown ) ; impl IAudioClient2 { pub unsafe fn Initialize < > ( & self , sharemode : AUDCLNT_SHAREMODE , streamflags : u32 , hnsbufferduration : i64 , hnsperiodicity : i64 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( sharemode ) , :: std :: mem :: transmute ( streamflags ) , :: std :: mem :: transmute ( hnsbufferduration ) , :: std :: mem :: transmute ( hnsperiodicity ) , :: std :: mem :: transmute ( pformat ) , :: std :: mem :: transmute ( audiosessionguid ) , ) . ok ( ) } pub unsafe fn GetBufferSize < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn GetStreamLatency < > ( & self , ) -> :: windows :: Result < i64 > { let mut result__ : < i64 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < i64 > ( result__ ) } pub unsafe fn GetCurrentPadding < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn IsFormatSupported < > ( & self , sharemode : AUDCLNT_SHAREMODE , pformat : * const super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: Result < * mut super::super::Multimedia:: WAVEFORMATEX > { let mut result__ : < * mut super::super::Multimedia:: WAVEFORMATEX as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( sharemode ) , :: std :: mem :: transmute ( pformat ) , & mut result__ ) . from_abi :: < * mut super::super::Multimedia:: WAVEFORMATEX > ( result__ ) } pub unsafe fn GetMixFormat < > ( & self , ) -> :: windows :: Result < * mut super::super::Multimedia:: WAVEFORMATEX > { let mut result__ : < * mut super::super::Multimedia:: WAVEFORMATEX as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < * mut super::super::Multimedia:: WAVEFORMATEX > ( result__ ) } pub unsafe fn GetDevicePeriod < > ( & self , phnsdefaultdeviceperiod : * mut i64 , phnsminimumdeviceperiod : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( phnsdefaultdeviceperiod ) , :: std :: mem :: transmute ( phnsminimumdeviceperiod ) , ) . ok ( ) } pub unsafe fn Start < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn Reset < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn SetEventHandle < 'a , > ( & self , eventhandle : impl :: windows :: IntoParam < 'a , super::super::super::Foundation:: HANDLE > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: std :: mem :: transmute_copy ( self ) , eventhandle . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetService < > ( & self , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( ppv ) , ) . ok ( ) } pub unsafe fn IsOffloadCapable < > ( & self , category : AUDIO_STREAM_CATEGORY , ) -> :: windows :: Result < super::super::super::Foundation:: BOOL > { let mut result__ : < super::super::super::Foundation:: BOOL as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( category ) , & mut result__ ) . from_abi :: < super::super::super::Foundation:: BOOL > ( result__ ) } pub unsafe fn SetClientProperties < > ( & self , pproperties : * const AudioClientProperties , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( pproperties ) , ) . ok ( ) } pub unsafe fn GetBufferSizeLimits < 'a , > ( & self , pformat : * const super::super::Multimedia:: WAVEFORMATEX , beventdriven : impl :: windows :: IntoParam < 'a , super::super::super::Foundation:: BOOL > , phnsminbufferduration : * mut i64 , phnsmaxbufferduration : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( pformat ) , beventdriven . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( phnsminbufferduration ) , :: std :: mem :: transmute ( phnsmaxbufferduration ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IAudioClient2 { type Vtable = IAudioClient2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1919383757 ,62986 ,20186 , [ 130 ,222 ,228 ,118 ,16 ,205 ,120 ,170 ] , ) ; } impl :: std :: convert :: From < IAudioClient2 > for :: windows :: IUnknown { fn from ( value : IAudioClient2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioClient2 > for :: windows :: IUnknown { fn from ( value : & IAudioClient2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IAudioClient2 { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IAudioClient2 { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < IAudioClient2 > for IAudioClient { fn from ( value : IAudioClient2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioClient2 > for IAudioClient { fn from ( value : & IAudioClient2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , IAudioClient > for IAudioClient2 { fn into_param ( self ) -> :: windows :: Param < 'a , IAudioClient > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < IAudioClient > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , IAudioClient > for & IAudioClient2 { fn into_param ( self ) -> :: windows :: Param < 'a , IAudioClient > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < IAudioClient > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IAudioClient2_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sharemode : AUDCLNT_SHAREMODE , streamflags : u32 , hnsbufferduration : i64 , hnsperiodicity : i64 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumbufferframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , phnslatency : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumpaddingframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sharemode : AUDCLNT_SHAREMODE , pformat : * const super::super::Multimedia:: WAVEFORMATEX , ppclosestmatch : * mut * mut super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppdeviceformat : * mut * mut super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , phnsdefaultdeviceperiod : * mut i64 , phnsminimumdeviceperiod : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandle : super::super::super::Foundation:: HANDLE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , category : AUDIO_STREAM_CATEGORY , pboffloadcapable : * mut super::super::super::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pproperties : * const AudioClientProperties , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pformat : * const super::super::Multimedia:: WAVEFORMATEX , beventdriven : super::super::super::Foundation:: BOOL , phnsminbufferduration : * mut i64 , phnsmaxbufferduration : * mut i64 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IAudioClient3 ( :: windows :: IUnknown ) ; impl IAudioClient3 { pub unsafe fn Initialize < > ( & self , sharemode : AUDCLNT_SHAREMODE , streamflags : u32 , hnsbufferduration : i64 , hnsperiodicity : i64 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( sharemode ) , :: std :: mem :: transmute ( streamflags ) , :: std :: mem :: transmute ( hnsbufferduration ) , :: std :: mem :: transmute ( hnsperiodicity ) , :: std :: mem :: transmute ( pformat ) , :: std :: mem :: transmute ( audiosessionguid ) , ) . ok ( ) } pub unsafe fn GetBufferSize < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn GetStreamLatency < > ( & self , ) -> :: windows :: Result < i64 > { let mut result__ : < i64 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < i64 > ( result__ ) } pub unsafe fn GetCurrentPadding < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn IsFormatSupported < > ( & self , sharemode : AUDCLNT_SHAREMODE , pformat : * const super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: Result < * mut super::super::Multimedia:: WAVEFORMATEX > { let mut result__ : < * mut super::super::Multimedia:: WAVEFORMATEX as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( sharemode ) , :: std :: mem :: transmute ( pformat ) , & mut result__ ) . from_abi :: < * mut super::super::Multimedia:: WAVEFORMATEX > ( result__ ) } pub unsafe fn GetMixFormat < > ( & self , ) -> :: windows :: Result < * mut super::super::Multimedia:: WAVEFORMATEX > { let mut result__ : < * mut super::super::Multimedia:: WAVEFORMATEX as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < * mut super::super::Multimedia:: WAVEFORMATEX > ( result__ ) } pub unsafe fn GetDevicePeriod < > ( & self , phnsdefaultdeviceperiod : * mut i64 , phnsminimumdeviceperiod : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( phnsdefaultdeviceperiod ) , :: std :: mem :: transmute ( phnsminimumdeviceperiod ) , ) . ok ( ) } pub unsafe fn Start < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn Reset < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } pub unsafe fn SetEventHandle < 'a , > ( & self , eventhandle : impl :: windows :: IntoParam < 'a , super::super::super::Foundation:: HANDLE > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: std :: mem :: transmute_copy ( self ) , eventhandle . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetService < > ( & self , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( ppv ) , ) . ok ( ) } pub unsafe fn IsOffloadCapable < > ( & self , category : AUDIO_STREAM_CATEGORY , ) -> :: windows :: Result < super::super::super::Foundation:: BOOL > { let mut result__ : < super::super::super::Foundation:: BOOL as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( category ) , & mut result__ ) . from_abi :: < super::super::super::Foundation:: BOOL > ( result__ ) } pub unsafe fn SetClientProperties < > ( & self , pproperties : * const AudioClientProperties , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( pproperties ) , ) . ok ( ) } pub unsafe fn GetBufferSizeLimits < 'a , > ( & self , pformat : * const super::super::Multimedia:: WAVEFORMATEX , beventdriven : impl :: windows :: IntoParam < 'a , super::super::super::Foundation:: BOOL > , phnsminbufferduration : * mut i64 , phnsmaxbufferduration : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( pformat ) , beventdriven . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( phnsminbufferduration ) , :: std :: mem :: transmute ( phnsmaxbufferduration ) , ) . ok ( ) } pub unsafe fn GetSharedModeEnginePeriod < > ( & self , pformat : * const super::super::Multimedia:: WAVEFORMATEX , pdefaultperiodinframes : * mut u32 , pfundamentalperiodinframes : * mut u32 , pminperiodinframes : * mut u32 , pmaxperiodinframes : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( pformat ) , :: std :: mem :: transmute ( pdefaultperiodinframes ) , :: std :: mem :: transmute ( pfundamentalperiodinframes ) , :: std :: mem :: transmute ( pminperiodinframes ) , :: std :: mem :: transmute ( pmaxperiodinframes ) , ) . ok ( ) } pub unsafe fn GetCurrentSharedModeEnginePeriod < > ( & self , ppformat : * mut * mut super::super::Multimedia:: WAVEFORMATEX , pcurrentperiodinframes : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( ppformat ) , :: std :: mem :: transmute ( pcurrentperiodinframes ) , ) . ok ( ) } pub unsafe fn InitializeSharedAudioStream < > ( & self , streamflags : u32 , periodinframes : u32 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( streamflags ) , :: std :: mem :: transmute ( periodinframes ) , :: std :: mem :: transmute ( pformat ) , :: std :: mem :: transmute ( audiosessionguid ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IAudioClient3 { type Vtable = IAudioClient3_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2127883783 ,36455 ,19668 , [ 140 ,26 ,43 ,122 ,89 ,135 ,173 ,66 ] , ) ; } impl :: std :: convert :: From < IAudioClient3 > for :: windows :: IUnknown { fn from ( value : IAudioClient3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioClient3 > for :: windows :: IUnknown { fn from ( value : & IAudioClient3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IAudioClient3 { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IAudioClient3 { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < IAudioClient3 > for IAudioClient2 { fn from ( value : IAudioClient3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioClient3 > for IAudioClient2 { fn from ( value : & IAudioClient3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , IAudioClient2 > for IAudioClient3 { fn into_param ( self ) -> :: windows :: Param < 'a , IAudioClient2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < IAudioClient2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , IAudioClient2 > for & IAudioClient3 { fn into_param ( self ) -> :: windows :: Param < 'a , IAudioClient2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < IAudioClient2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < IAudioClient3 > for IAudioClient { fn from ( value : IAudioClient3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioClient3 > for IAudioClient { fn from ( value : & IAudioClient3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , IAudioClient > for IAudioClient3 { fn into_param ( self ) -> :: windows :: Param < 'a , IAudioClient > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < IAudioClient > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , IAudioClient > for & IAudioClient3 { fn into_param ( self ) -> :: windows :: Param < 'a , IAudioClient > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < IAudioClient > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IAudioClient3_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sharemode : AUDCLNT_SHAREMODE , streamflags : u32 , hnsbufferduration : i64 , hnsperiodicity : i64 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumbufferframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , phnslatency : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pnumpaddingframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sharemode : AUDCLNT_SHAREMODE , pformat : * const super::super::Multimedia:: WAVEFORMATEX , ppclosestmatch : * mut * mut super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppdeviceformat : * mut * mut super::super::Multimedia:: WAVEFORMATEX , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , phnsdefaultdeviceperiod : * mut i64 , phnsminimumdeviceperiod : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandle : super::super::super::Foundation:: HANDLE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , category : AUDIO_STREAM_CATEGORY , pboffloadcapable : * mut super::super::super::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pproperties : * const AudioClientProperties , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pformat : * const super::super::Multimedia:: WAVEFORMATEX , beventdriven : super::super::super::Foundation:: BOOL , phnsminbufferduration : * mut i64 , phnsmaxbufferduration : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pformat : * const super::super::Multimedia:: WAVEFORMATEX , pdefaultperiodinframes : * mut u32 , pfundamentalperiodinframes : * mut u32 , pminperiodinframes : * mut u32 , pmaxperiodinframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppformat : * mut * mut super::super::Multimedia:: WAVEFORMATEX , pcurrentperiodinframes : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , streamflags : u32 , periodinframes : u32 , pformat : * const super::super::Multimedia:: WAVEFORMATEX , audiosessionguid : * const :: windows :: Guid , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IAudioRenderClient ( :: windows :: IUnknown ) ; impl IAudioRenderClient { pub unsafe fn GetBuffer < > ( & self , numframesrequested : u32 , ) -> :: windows :: Result < * mut u8 > { let mut result__ : < * mut u8 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( numframesrequested ) , & mut result__ ) . from_abi :: < * mut u8 > ( result__ ) } pub unsafe fn ReleaseBuffer < > ( & self , numframeswritten : u32 , dwflags : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( numframeswritten ) , :: std :: mem :: transmute ( dwflags ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IAudioRenderClient { type Vtable = IAudioRenderClient_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4069829884 ,12614 ,17539 , [ 167 ,191 ,173 ,220 ,167 ,194 ,96 ,226 ] , ) ; } impl :: std :: convert :: From < IAudioRenderClient > for :: windows :: IUnknown { fn from ( value : IAudioRenderClient ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IAudioRenderClient > for :: windows :: IUnknown { fn from ( value : & IAudioRenderClient ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IAudioRenderClient { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IAudioRenderClient { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IAudioRenderClient_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , numframesrequested : u32 , ppdata : * mut * mut u8 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , numframeswritten : u32 , dwflags : u32 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IMMDevice ( :: windows :: IUnknown ) ; impl IMMDevice { pub unsafe fn Activate < > ( & self , iid : * const :: windows :: Guid , dwclsctx : u32 , pactivationparams : * const super::super::super::Storage::StructuredStorage:: PROPVARIANT , ppinterface : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( iid ) , :: std :: mem :: transmute ( dwclsctx ) , :: std :: mem :: transmute ( pactivationparams ) , :: std :: mem :: transmute ( ppinterface ) , ) . ok ( ) } pub unsafe fn OpenPropertyStore < > ( & self , stgmaccess : u32 , ) -> :: windows :: Result < super::super::super::System::PropertiesSystem:: IPropertyStore > { let mut result__ : < super::super::super::System::PropertiesSystem:: IPropertyStore as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( stgmaccess ) , & mut result__ ) . from_abi :: < super::super::super::System::PropertiesSystem:: IPropertyStore > ( result__ ) } pub unsafe fn GetId < > ( & self , ) -> :: windows :: Result < super::super::super::Foundation:: PWSTR > { let mut result__ : < super::super::super::Foundation:: PWSTR as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < super::super::super::Foundation:: PWSTR > ( result__ ) } pub unsafe fn GetState < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } } unsafe impl :: windows :: Interface for IMMDevice { type Vtable = IMMDevice_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3597010495 ,5511 ,20035 , [ 129 ,241 ,185 ,72 ,232 ,7 ,54 ,63 ] , ) ; } impl :: std :: convert :: From < IMMDevice > for :: windows :: IUnknown { fn from ( value : IMMDevice ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IMMDevice > for :: windows :: IUnknown { fn from ( value : & IMMDevice ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IMMDevice { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IMMDevice { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IMMDevice_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : * const :: windows :: Guid , dwclsctx : u32 , pactivationparams : * const :: std :: mem :: ManuallyDrop < super::super::super::Storage::StructuredStorage:: PROPVARIANT > , ppinterface : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , stgmaccess : u32 , ppproperties : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppstrid : * mut super::super::super::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pdwstate : * mut u32 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IMMDeviceCollection ( :: windows :: IUnknown ) ; impl IMMDeviceCollection { pub unsafe fn GetCount < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn Item < > ( & self , ndevice : u32 , ) -> :: windows :: Result < IMMDevice > { let mut result__ : < IMMDevice as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( ndevice ) , & mut result__ ) . from_abi :: < IMMDevice > ( result__ ) } } unsafe impl :: windows :: Interface for IMMDeviceCollection { type Vtable = IMMDeviceCollection_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 198681022 ,31258 ,17627 , [ 131 ,151 ,204 ,83 ,146 ,56 ,123 ,94 ] , ) ; } impl :: std :: convert :: From < IMMDeviceCollection > for :: windows :: IUnknown { fn from ( value : IMMDeviceCollection ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IMMDeviceCollection > for :: windows :: IUnknown { fn from ( value : & IMMDeviceCollection ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IMMDeviceCollection { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IMMDeviceCollection { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IMMDeviceCollection_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pcdevices : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ndevice : u32 , ppdevice : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IMMDeviceEnumerator ( :: windows :: IUnknown ) ; impl IMMDeviceEnumerator { pub unsafe fn EnumAudioEndpoints < > ( & self , dataflow : EDataFlow , dwstatemask : u32 , ) -> :: windows :: Result < IMMDeviceCollection > { let mut result__ : < IMMDeviceCollection as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( dataflow ) , :: std :: mem :: transmute ( dwstatemask ) , & mut result__ ) . from_abi :: < IMMDeviceCollection > ( result__ ) } pub unsafe fn GetDefaultAudioEndpoint < > ( & self , dataflow : EDataFlow , role : ERole , ) -> :: windows :: Result < IMMDevice > { let mut result__ : < IMMDevice as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( dataflow ) , :: std :: mem :: transmute ( role ) , & mut result__ ) . from_abi :: < IMMDevice > ( result__ ) } pub unsafe fn GetDevice < 'a , > ( & self , pwstrid : impl :: windows :: IntoParam < 'a , super::super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < IMMDevice > { let mut result__ : < IMMDevice as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , pwstrid . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < IMMDevice > ( result__ ) } pub unsafe fn RegisterEndpointNotificationCallback < 'a , > ( & self , pclient : impl :: windows :: IntoParam < 'a , IMMNotificationClient > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: std :: mem :: transmute_copy ( self ) , pclient . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn UnregisterEndpointNotificationCallback < 'a , > ( & self , pclient : impl :: windows :: IntoParam < 'a , IMMNotificationClient > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: std :: mem :: transmute_copy ( self ) , pclient . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IMMDeviceEnumerator { type Vtable = IMMDeviceEnumerator_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2841011410 ,38420 ,20277 , [ 167 ,70 ,222 ,141 ,182 ,54 ,23 ,230 ] , ) ; } impl :: std :: convert :: From < IMMDeviceEnumerator > for :: windows :: IUnknown { fn from ( value : IMMDeviceEnumerator ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IMMDeviceEnumerator > for :: windows :: IUnknown { fn from ( value : & IMMDeviceEnumerator ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IMMDeviceEnumerator { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IMMDeviceEnumerator { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IMMDeviceEnumerator_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dataflow : EDataFlow , dwstatemask : u32 , ppdevices : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dataflow : EDataFlow , role : ERole , ppendpoint : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pwstrid : super::super::super::Foundation:: PWSTR , ppdevice : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pclient : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pclient : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IMMNotificationClient ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IMMNotificationClient { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2039606985 ,32393 ,19845 , [ 131 ,144 ,108 ,112 ,60 ,236 ,96 ,192 ] , ) ; } pub const MMDeviceEnumerator : :: windows :: Guid = :: windows :: Guid :: from_values ( 3168666517 ,58671 ,18044 , [ 142 ,61 ,196 ,87 ,146 ,145 ,105 ,46 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Multimedia { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C , packed ( 1 ) ) ] pub struct WAVEFORMATEX { pub wFormatTag : u16 , pub nChannels : u16 , pub nSamplesPerSec : u32 , pub nAvgBytesPerSec : u32 , pub nBlockAlign : u16 , pub wBitsPerSample : u16 , pub cbSize : u16 } impl WAVEFORMATEX { } impl :: std :: default :: Default for WAVEFORMATEX { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for WAVEFORMATEX { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for WAVEFORMATEX { } unsafe impl :: windows :: Abi for WAVEFORMATEX { type Abi = Self ; type DefaultType = Self ; } pub const WAVE_FORMAT_IEEE_FLOAT : u32 = 3u32 ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Security { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SECURITY_ATTRIBUTES { pub nLength : u32 , pub lpSecurityDescriptor : * mut :: std :: ffi :: c_void , pub bInheritHandle : super::Foundation:: BOOL } impl SECURITY_ATTRIBUTES { } impl :: std :: default :: Default for SECURITY_ATTRIBUTES { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for SECURITY_ATTRIBUTES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SECURITY_ATTRIBUTES" ) . field ( "nLength" , & self . nLength ) . field ( "lpSecurityDescriptor" , & self . lpSecurityDescriptor ) . field ( "bInheritHandle" , & self . bInheritHandle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SECURITY_ATTRIBUTES { fn eq ( & self , other : & Self ) -> bool { self . nLength == other . nLength && self . lpSecurityDescriptor == other . lpSecurityDescriptor && self . bInheritHandle == other . bInheritHandle } } impl :: std :: cmp :: Eq for SECURITY_ATTRIBUTES { } unsafe impl :: windows :: Abi for SECURITY_ATTRIBUTES { type Abi = Self ; type DefaultType = Self ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Storage { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod StructuredStorage { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CABOOL { pub cElems : u32 , pub pElems : * mut i16 } impl CABOOL { } impl :: std :: default :: Default for CABOOL { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CABOOL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CABOOL" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CABOOL { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CABOOL { } unsafe impl :: windows :: Abi for CABOOL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CABSTR { pub cElems : u32 , pub pElems : * mut super::super::Foundation:: BSTR } impl CABSTR { } impl :: std :: default :: Default for CABSTR { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CABSTR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CABSTR" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CABSTR { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CABSTR { } unsafe impl :: windows :: Abi for CABSTR { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CABSTRBLOB { pub cElems : u32 , pub pElems : * mut super::super::System::SystemServices:: BSTRBLOB } impl CABSTRBLOB { } impl :: std :: default :: Default for CABSTRBLOB { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CABSTRBLOB { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CABSTRBLOB" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CABSTRBLOB { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CABSTRBLOB { } unsafe impl :: windows :: Abi for CABSTRBLOB { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAC { pub cElems : u32 , pub pElems : super::super::Foundation:: PSTR } impl CAC { } impl :: std :: default :: Default for CAC { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAC { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAC" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAC { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAC { } unsafe impl :: windows :: Abi for CAC { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CACLIPDATA { pub cElems : u32 , pub pElems : * mut super::super::System::SystemServices:: CLIPDATA } impl CACLIPDATA { } impl :: std :: default :: Default for CACLIPDATA { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CACLIPDATA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CACLIPDATA" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CACLIPDATA { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CACLIPDATA { } unsafe impl :: windows :: Abi for CACLIPDATA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CACLSID { pub cElems : u32 , pub pElems : * mut :: windows :: Guid } impl CACLSID { } impl :: std :: default :: Default for CACLSID { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CACLSID { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CACLSID" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CACLSID { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CACLSID { } unsafe impl :: windows :: Abi for CACLSID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CACY { pub cElems : u32 , pub pElems : * mut super::super::System::SystemServices:: CY } impl CACY { } impl :: std :: default :: Default for CACY { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CACY { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CACY" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CACY { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CACY { } unsafe impl :: windows :: Abi for CACY { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CADATE { pub cElems : u32 , pub pElems : * mut f64 } impl CADATE { } impl :: std :: default :: Default for CADATE { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CADATE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CADATE" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CADATE { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CADATE { } unsafe impl :: windows :: Abi for CADATE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CADBL { pub cElems : u32 , pub pElems : * mut f64 } impl CADBL { } impl :: std :: default :: Default for CADBL { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CADBL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CADBL" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CADBL { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CADBL { } unsafe impl :: windows :: Abi for CADBL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAFILETIME { pub cElems : u32 , pub pElems : * mut super::super::Foundation:: FILETIME } impl CAFILETIME { } impl :: std :: default :: Default for CAFILETIME { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAFILETIME { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAFILETIME" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAFILETIME { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAFILETIME { } unsafe impl :: windows :: Abi for CAFILETIME { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAFLT { pub cElems : u32 , pub pElems : * mut f32 } impl CAFLT { } impl :: std :: default :: Default for CAFLT { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAFLT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAFLT" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAFLT { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAFLT { } unsafe impl :: windows :: Abi for CAFLT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAH { pub cElems : u32 , pub pElems : * mut i64 } impl CAH { } impl :: std :: default :: Default for CAH { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAH { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAH" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAH { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAH { } unsafe impl :: windows :: Abi for CAH { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAI { pub cElems : u32 , pub pElems : * mut i16 } impl CAI { } impl :: std :: default :: Default for CAI { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAI { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAI" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAI { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAI { } unsafe impl :: windows :: Abi for CAI { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAL { pub cElems : u32 , pub pElems : * mut i32 } impl CAL { } impl :: std :: default :: Default for CAL { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAL" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAL { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAL { } unsafe impl :: windows :: Abi for CAL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CALPSTR { pub cElems : u32 , pub pElems : * mut super::super::Foundation:: PSTR } impl CALPSTR { } impl :: std :: default :: Default for CALPSTR { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CALPSTR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CALPSTR" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CALPSTR { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CALPSTR { } unsafe impl :: windows :: Abi for CALPSTR { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CALPWSTR { pub cElems : u32 , pub pElems : * mut super::super::Foundation:: PWSTR } impl CALPWSTR { } impl :: std :: default :: Default for CALPWSTR { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CALPWSTR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CALPWSTR" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CALPWSTR { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CALPWSTR { } unsafe impl :: windows :: Abi for CALPWSTR { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAPROPVARIANT { pub cElems : u32 , pub pElems : * mut PROPVARIANT } impl CAPROPVARIANT { } impl :: std :: default :: Default for CAPROPVARIANT { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAPROPVARIANT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAPROPVARIANT" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAPROPVARIANT { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAPROPVARIANT { } unsafe impl :: windows :: Abi for CAPROPVARIANT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CASCODE { pub cElems : u32 , pub pElems : * mut i32 } impl CASCODE { } impl :: std :: default :: Default for CASCODE { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CASCODE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CASCODE" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CASCODE { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CASCODE { } unsafe impl :: windows :: Abi for CASCODE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAUB { pub cElems : u32 , pub pElems : * mut u8 } impl CAUB { } impl :: std :: default :: Default for CAUB { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAUB { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAUB" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAUB { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAUB { } unsafe impl :: windows :: Abi for CAUB { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAUH { pub cElems : u32 , pub pElems : * mut u64 } impl CAUH { } impl :: std :: default :: Default for CAUH { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAUH { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAUH" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAUH { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAUH { } unsafe impl :: windows :: Abi for CAUH { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAUI { pub cElems : u32 , pub pElems : * mut u16 } impl CAUI { } impl :: std :: default :: Default for CAUI { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAUI { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAUI" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAUI { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAUI { } unsafe impl :: windows :: Abi for CAUI { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CAUL { pub cElems : u32 , pub pElems : * mut u32 } impl CAUL { } impl :: std :: default :: Default for CAUL { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CAUL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CAUL" ) . field ( "cElems" , & self . cElems ) . field ( "pElems" , & self . pElems ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CAUL { fn eq ( & self , other : & Self ) -> bool { self . cElems == other . cElems && self . pElems == other . pElems } } impl :: std :: cmp :: Eq for CAUL { } unsafe impl :: windows :: Abi for CAUL { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IStorage ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IStorage { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 11 ,0 ,0 , [ 192 ,0 ,0 ,0 ,0 ,0 ,0 ,70 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IStream ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IStream { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 12 ,0 ,0 , [ 192 ,0 ,0 ,0 ,0 ,0 ,0 ,70 ] , ) ; } impl :: std :: clone :: Clone for PROPVARIANT { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub struct PROPVARIANT { pub Anonymous : PROPVARIANT_0 } impl PROPVARIANT { } impl :: std :: default :: Default for PROPVARIANT { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for PROPVARIANT { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for PROPVARIANT { } unsafe impl :: windows :: Abi for PROPVARIANT { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } impl :: std :: clone :: Clone for PROPVARIANT_0 { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub union PROPVARIANT_0 { pub Anonymous : :: std :: mem :: ManuallyDrop < PROPVARIANT_0_0 > , pub decVal : super::super::System::SystemServices:: DECIMAL } impl PROPVARIANT_0 { } impl :: std :: default :: Default for PROPVARIANT_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for PROPVARIANT_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for PROPVARIANT_0 { } unsafe impl :: windows :: Abi for PROPVARIANT_0 { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } impl :: std :: clone :: Clone for PROPVARIANT_0_0 { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub struct PROPVARIANT_0_0 { pub vt : u16 , pub wReserved1 : u16 , pub wReserved2 : u16 , pub wReserved3 : u16 , pub Anonymous : PROPVARIANT_0_0_0 } impl PROPVARIANT_0_0 { } impl :: std :: default :: Default for PROPVARIANT_0_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for PROPVARIANT_0_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for PROPVARIANT_0_0 { } unsafe impl :: windows :: Abi for PROPVARIANT_0_0 { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } impl :: std :: clone :: Clone for PROPVARIANT_0_0_0 { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub union PROPVARIANT_0_0_0 { pub cVal : super::super::System::SystemServices:: CHAR , pub bVal : u8 , pub iVal : i16 , pub uiVal : u16 , pub lVal : i32 , pub ulVal : u32 , pub intVal : i32 , pub uintVal : u32 , pub hVal : i64 , pub uhVal : u64 , pub fltVal : f32 , pub dblVal : f64 , pub boolVal : i16 , pub __OBSOLETE__VARIANT_BOOL : i16 , pub scode : i32 , pub cyVal : super::super::System::SystemServices:: CY , pub date : f64 , pub filetime : super::super::Foundation:: FILETIME , pub puuid : * mut :: windows :: Guid , pub pclipdata : * mut super::super::System::SystemServices:: CLIPDATA , pub bstrVal : :: std :: mem :: ManuallyDrop < super::super::Foundation:: BSTR > , pub bstrblobVal : super::super::System::SystemServices:: BSTRBLOB , pub blob : super::super::System::Com:: BLOB , pub pszVal : super::super::Foundation:: PSTR , pub pwszVal : super::super::Foundation:: PWSTR , pub punkVal : :: windows :: RawPtr , pub pdispVal : :: windows :: RawPtr , pub pStream : :: windows :: RawPtr , pub pStorage : :: windows :: RawPtr , pub pVersionedStream : * mut :: std :: mem :: ManuallyDrop < VERSIONEDSTREAM > , pub parray : * mut super::super::System::OleAutomation:: SAFEARRAY , pub cac : CAC , pub caub : CAUB , pub cai : CAI , pub caui : CAUI , pub cal : CAL , pub caul : CAUL , pub cah : CAH , pub cauh : CAUH , pub caflt : CAFLT , pub cadbl : CADBL , pub cabool : CABOOL , pub cascode : CASCODE , pub cacy : CACY , pub cadate : CADATE , pub cafiletime : CAFILETIME , pub cauuid : CACLSID , pub caclipdata : CACLIPDATA , pub cabstr : CABSTR , pub cabstrblob : CABSTRBLOB , pub calpstr : CALPSTR , pub calpwstr : CALPWSTR , pub capropvar : CAPROPVARIANT , pub pcVal : super::super::Foundation:: PSTR , pub pbVal : * mut u8 , pub piVal : * mut i16 , pub puiVal : * mut u16 , pub plVal : * mut i32 , pub pulVal : * mut u32 , pub pintVal : * mut i32 , pub puintVal : * mut u32 , pub pfltVal : * mut f32 , pub pdblVal : * mut f64 , pub pboolVal : * mut i16 , pub pdecVal : * mut super::super::System::SystemServices:: DECIMAL , pub pscode : * mut i32 , pub pcyVal : * mut super::super::System::SystemServices:: CY , pub pdate : * mut f64 , pub pbstrVal : * mut :: std :: mem :: ManuallyDrop < super::super::Foundation:: BSTR > , pub ppunkVal : * mut :: windows :: RawPtr , pub ppdispVal : * mut :: windows :: RawPtr , pub pparray : * mut * mut super::super::System::OleAutomation:: SAFEARRAY , pub pvarVal : * mut :: std :: mem :: ManuallyDrop < PROPVARIANT > } impl PROPVARIANT_0_0_0 { } impl :: std :: default :: Default for PROPVARIANT_0_0_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for PROPVARIANT_0_0_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for PROPVARIANT_0_0_0 { } unsafe impl :: windows :: Abi for PROPVARIANT_0_0_0 { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } pub const STGM_READ : i32 = 0i32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct VERSIONEDSTREAM { pub guidVersion : :: windows :: Guid , pub pStream : :: std :: option :: Option < IStream > } impl VERSIONEDSTREAM { } impl :: std :: default :: Default for VERSIONEDSTREAM { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for VERSIONEDSTREAM { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "VERSIONEDSTREAM" ) . field ( "guidVersion" , & self . guidVersion ) . field ( "pStream" , & self . pStream ) . finish ( ) } } impl :: std :: cmp :: PartialEq for VERSIONEDSTREAM { fn eq ( & self , other : & Self ) -> bool { self . guidVersion == other . guidVersion && self . pStream == other . pStream } } impl :: std :: cmp :: Eq for VERSIONEDSTREAM { } unsafe impl :: windows :: Abi for VERSIONEDSTREAM { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod System { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Com { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct BLOB { pub cbSize : u32 , pub pBlobData : * mut u8 } impl BLOB { } impl :: std :: default :: Default for BLOB { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for BLOB { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "BLOB" ) . field ( "cbSize" , & self . cbSize ) . field ( "pBlobData" , & self . pBlobData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for BLOB { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . pBlobData == other . pBlobData } } impl :: std :: cmp :: Eq for BLOB { } unsafe impl :: windows :: Abi for BLOB { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct CLSCTX ( pub u32 ) ; pub const CLSCTX_INPROC_SERVER : CLSCTX = CLSCTX ( 1u32 ) ; pub const CLSCTX_INPROC_HANDLER : CLSCTX = CLSCTX ( 2u32 ) ; pub const CLSCTX_LOCAL_SERVER : CLSCTX = CLSCTX ( 4u32 ) ; pub const CLSCTX_INPROC_SERVER16 : CLSCTX = CLSCTX ( 8u32 ) ; pub const CLSCTX_REMOTE_SERVER : CLSCTX = CLSCTX ( 16u32 ) ; pub const CLSCTX_INPROC_HANDLER16 : CLSCTX = CLSCTX ( 32u32 ) ; pub const CLSCTX_RESERVED1 : CLSCTX = CLSCTX ( 64u32 ) ; pub const CLSCTX_RESERVED2 : CLSCTX = CLSCTX ( 128u32 ) ; pub const CLSCTX_RESERVED3 : CLSCTX = CLSCTX ( 256u32 ) ; pub const CLSCTX_RESERVED4 : CLSCTX = CLSCTX ( 512u32 ) ; pub const CLSCTX_NO_CODE_DOWNLOAD : CLSCTX = CLSCTX ( 1024u32 ) ; pub const CLSCTX_RESERVED5 : CLSCTX = CLSCTX ( 2048u32 ) ; pub const CLSCTX_NO_CUSTOM_MARSHAL : CLSCTX = CLSCTX ( 4096u32 ) ; pub const CLSCTX_ENABLE_CODE_DOWNLOAD : CLSCTX = CLSCTX ( 8192u32 ) ; pub const CLSCTX_NO_FAILURE_LOG : CLSCTX = CLSCTX ( 16384u32 ) ; pub const CLSCTX_DISABLE_AAA : CLSCTX = CLSCTX ( 32768u32 ) ; pub const CLSCTX_ENABLE_AAA : CLSCTX = CLSCTX ( 65536u32 ) ; pub const CLSCTX_FROM_DEFAULT_CONTEXT : CLSCTX = CLSCTX ( 131072u32 ) ; pub const CLSCTX_ACTIVATE_X86_SERVER : CLSCTX = CLSCTX ( 262144u32 ) ; pub const CLSCTX_ACTIVATE_32_BIT_SERVER : CLSCTX = CLSCTX ( 262144u32 ) ; pub const CLSCTX_ACTIVATE_64_BIT_SERVER : CLSCTX = CLSCTX ( 524288u32 ) ; pub const CLSCTX_ENABLE_CLOAKING : CLSCTX = CLSCTX ( 1048576u32 ) ; pub const CLSCTX_APPCONTAINER : CLSCTX = CLSCTX ( 4194304u32 ) ; pub const CLSCTX_ACTIVATE_AAA_AS_IU : CLSCTX = CLSCTX ( 8388608u32 ) ; pub const CLSCTX_RESERVED6 : CLSCTX = CLSCTX ( 16777216u32 ) ; pub const CLSCTX_ACTIVATE_ARM32_SERVER : CLSCTX = CLSCTX ( 33554432u32 ) ; pub const CLSCTX_PS_DLL : CLSCTX = CLSCTX ( 2147483648u32 ) ; pub const CLSCTX_ALL : CLSCTX = CLSCTX ( 23u32 ) ; pub const CLSCTX_SERVER : CLSCTX = CLSCTX ( 21u32 ) ; impl :: std :: convert :: From < u32 > for CLSCTX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CLSCTX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CLSCTX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CLSCTX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CLSCTX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CLSCTX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for CLSCTX { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } pub unsafe fn CLSIDFromProgID < 'a , > ( lpszprogid : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < :: windows :: Guid > { # [ cfg ( windows ) ] { # [ link ( name ="ole32" ) ] extern "system" { fn CLSIDFromProgID ( lpszprogid : super::super::Foundation:: PWSTR , lpclsid : * mut :: windows :: Guid ) -> :: windows :: HRESULT ; } let mut result__ : < :: windows :: Guid as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; CLSIDFromProgID ( lpszprogid . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < :: windows :: Guid > ( result__ ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct COINIT ( pub u32 ) ; pub const COINIT_APARTMENTTHREADED : COINIT = COINIT ( 2u32 ) ; pub const COINIT_MULTITHREADED : COINIT = COINIT ( 0u32 ) ; pub const COINIT_DISABLE_OLE1DDE : COINIT = COINIT ( 4u32 ) ; pub const COINIT_SPEED_OVER_MEMORY : COINIT = COINIT ( 8u32 ) ; impl :: std :: convert :: From < u32 > for COINIT { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COINIT { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for COINIT { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for COINIT { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for COINIT { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for COINIT { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for COINIT { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } pub unsafe fn CoCreateInstance < 'a , T : :: windows :: Interface > ( rclsid : * const :: windows :: Guid , punkouter : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , dwclscontext : CLSCTX , ) -> :: windows :: Result < T > { # [ cfg ( windows ) ] { # [ link ( name ="ole32" ) ] extern "system" { fn CoCreateInstance ( rclsid : * const :: windows :: Guid , punkouter : :: windows :: RawPtr , dwclscontext : CLSCTX , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void ) -> :: windows :: HRESULT ; } let mut result__ = :: std :: option :: Option :: None ; CoCreateInstance ( :: std :: mem :: transmute ( rclsid ) , punkouter . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwclscontext ) , & < T as :: windows :: Interface > :: IID , & mut result__ as * mut _ as * mut _ ) . and_some ( result__ ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CoInitializeEx < > ( pvreserved : * const :: std :: ffi :: c_void , dwcoinit : COINIT , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="ole32" ) ] extern "system" { fn CoInitializeEx ( pvreserved : * const :: std :: ffi :: c_void , dwcoinit : COINIT ) -> :: windows :: HRESULT ; } CoInitializeEx ( :: std :: mem :: transmute ( pvreserved ) , :: std :: mem :: transmute ( dwcoinit ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CoUninitialize < > ( ) { # [ cfg ( windows ) ] { # [ link ( name ="ole32" ) ] extern "system" { fn CoUninitialize ( ) ; } :: std :: mem :: transmute ( CoUninitialize ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Diagnostics { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Debug { pub unsafe fn GetLastError < > ( ) -> WIN32_ERROR { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn GetLastError ( ) -> WIN32_ERROR ; } :: std :: mem :: transmute ( GetLastError ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WIN32_ERROR ( pub u32 ) ; impl :: std :: convert :: From < u32 > for WIN32_ERROR { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WIN32_ERROR { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WIN32_ERROR { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WIN32_ERROR { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WIN32_ERROR { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WIN32_ERROR { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for WIN32_ERROR { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } impl :: std :: convert :: From < WIN32_ERROR > for :: windows :: HRESULT { fn from ( value : WIN32_ERROR ) -> Self { Self ( if value . 0 as i32 <= 0 { value . 0 } else { ( value . 0 & 0x0000_FFFF ) | ( 7 << 16 ) | 0x8000_0000 } ) } } } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod OleAutomation { # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDispatch ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDispatch { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 132096 ,0 ,0 , [ 192 ,0 ,0 ,0 ,0 ,0 ,0 ,70 ] , ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SAFEARRAY { pub cDims : u16 , pub fFeatures : u16 , pub cbElements : u32 , pub cLocks : u32 , pub pvData : * mut :: std :: ffi :: c_void , pub rgsabound : [ SAFEARRAYBOUND ;1 ] } impl SAFEARRAY { } impl :: std :: default :: Default for SAFEARRAY { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for SAFEARRAY { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SAFEARRAY" ) . field ( "cDims" , & self . cDims ) . field ( "fFeatures" , & self . fFeatures ) . field ( "cbElements" , & self . cbElements ) . field ( "cLocks" , & self . cLocks ) . field ( "pvData" , & self . pvData ) . field ( "rgsabound" , & self . rgsabound ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SAFEARRAY { fn eq ( & self , other : & Self ) -> bool { self . cDims == other . cDims && self . fFeatures == other . fFeatures && self . cbElements == other . cbElements && self . cLocks == other . cLocks && self . pvData == other . pvData && self . rgsabound == other . rgsabound } } impl :: std :: cmp :: Eq for SAFEARRAY { } unsafe impl :: windows :: Abi for SAFEARRAY { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SAFEARRAYBOUND { pub cElements : u32 , pub lLbound : i32 } impl SAFEARRAYBOUND { } impl :: std :: default :: Default for SAFEARRAYBOUND { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for SAFEARRAYBOUND { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SAFEARRAYBOUND" ) . field ( "cElements" , & self . cElements ) . field ( "lLbound" , & self . lLbound ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SAFEARRAYBOUND { fn eq ( & self , other : & Self ) -> bool { self . cElements == other . cElements && self . lLbound == other . lLbound } } impl :: std :: cmp :: Eq for SAFEARRAYBOUND { } unsafe impl :: windows :: Abi for SAFEARRAYBOUND { type Abi = Self ; type DefaultType = Self ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod PropertiesSystem { # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IPropertyStore ( :: windows :: IUnknown ) ; impl IPropertyStore { pub unsafe fn GetCount < > ( & self , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: std :: mem :: transmute_copy ( self ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn GetAt < > ( & self , iprop : u32 , ) -> :: windows :: Result < PROPERTYKEY > { let mut result__ : < PROPERTYKEY as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( iprop ) , & mut result__ ) . from_abi :: < PROPERTYKEY > ( result__ ) } pub unsafe fn GetValue < > ( & self , key : * const PROPERTYKEY , ) -> :: windows :: Result < super::super::Storage::StructuredStorage:: PROPVARIANT > { let mut result__ : < super::super::Storage::StructuredStorage:: PROPVARIANT as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( key ) , & mut result__ ) . from_abi :: < super::super::Storage::StructuredStorage:: PROPVARIANT > ( result__ ) } pub unsafe fn SetValue < > ( & self , key : * const PROPERTYKEY , propvar : * const super::super::Storage::StructuredStorage:: PROPVARIANT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: std :: mem :: transmute_copy ( self ) , :: std :: mem :: transmute ( key ) , :: std :: mem :: transmute ( propvar ) , ) . ok ( ) } pub unsafe fn Commit < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: std :: mem :: transmute_copy ( self ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IPropertyStore { type Vtable = IPropertyStore_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2288881387 ,36082 ,17478 , [ 141 ,2 ,205 ,186 ,29 ,189 ,207 ,153 ] , ) ; } impl :: std :: convert :: From < IPropertyStore > for :: windows :: IUnknown { fn from ( value : IPropertyStore ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IPropertyStore > for :: windows :: IUnknown { fn from ( value : & IPropertyStore ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IPropertyStore { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & IPropertyStore { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IPropertyStore_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cprops : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iprop : u32 , pkey : * mut PROPERTYKEY , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , key : * const PROPERTYKEY , pv : * mut :: std :: mem :: ManuallyDrop < super::super::Storage::StructuredStorage:: PROPVARIANT > , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , key : * const PROPERTYKEY , propvar : * const :: std :: mem :: ManuallyDrop < super::super::Storage::StructuredStorage:: PROPVARIANT > , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct PROPERTYKEY { pub fmtid : :: windows :: Guid , pub pid : u32 } impl PROPERTYKEY { } impl :: std :: default :: Default for PROPERTYKEY { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for PROPERTYKEY { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PROPERTYKEY" ) . field ( "fmtid" , & self . fmtid ) . field ( "pid" , & self . pid ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PROPERTYKEY { fn eq ( & self , other : & Self ) -> bool { self . fmtid == other . fmtid && self . pid == other . pid } } impl :: std :: cmp :: Eq for PROPERTYKEY { } unsafe impl :: windows :: Abi for PROPERTYKEY { type Abi = Self ; type DefaultType = Self ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod SystemServices { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct BSTRBLOB { pub cbSize : u32 , pub pData : * mut u8 } impl BSTRBLOB { } impl :: std :: default :: Default for BSTRBLOB { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for BSTRBLOB { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "BSTRBLOB" ) . field ( "cbSize" , & self . cbSize ) . field ( "pData" , & self . pData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for BSTRBLOB { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . pData == other . pData } } impl :: std :: cmp :: Eq for BSTRBLOB { } unsafe impl :: windows :: Abi for BSTRBLOB { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct CHAR ( pub u8 ) ; impl :: std :: default :: Default for CHAR { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for CHAR { } unsafe impl :: windows :: Abi for CHAR { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CLIPDATA { pub cbSize : u32 , pub ulClipFmt : i32 , pub pClipData : * mut u8 } impl CLIPDATA { } impl :: std :: default :: Default for CLIPDATA { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CLIPDATA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CLIPDATA" ) . field ( "cbSize" , & self . cbSize ) . field ( "ulClipFmt" , & self . ulClipFmt ) . field ( "pClipData" , & self . pClipData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CLIPDATA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . ulClipFmt == other . ulClipFmt && self . pClipData == other . pClipData } } impl :: std :: cmp :: Eq for CLIPDATA { } unsafe impl :: windows :: Abi for CLIPDATA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union CY { pub Anonymous : CY_0 , pub int64 : i64 } impl CY { } impl :: std :: default :: Default for CY { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for CY { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for CY { } unsafe impl :: windows :: Abi for CY { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CY_0 { pub Lo : u32 , pub Hi : i32 } impl CY_0 { } impl :: std :: default :: Default for CY_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for CY_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "Lo" , & self . Lo ) . field ( "Hi" , & self . Hi ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CY_0 { fn eq ( & self , other : & Self ) -> bool { self . Lo == other . Lo && self . Hi == other . Hi } } impl :: std :: cmp :: Eq for CY_0 { } unsafe impl :: windows :: Abi for CY_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DECIMAL { pub wReserved : u16 , pub Anonymous1 : DECIMAL_0 , pub Hi32 : u32 , pub Anonymous2 : DECIMAL_1 } impl DECIMAL { } impl :: std :: default :: Default for DECIMAL { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for DECIMAL { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DECIMAL { } unsafe impl :: windows :: Abi for DECIMAL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DECIMAL_0 { pub Anonymous : DECIMAL_0_0 , pub signscale : u16 } impl DECIMAL_0 { } impl :: std :: default :: Default for DECIMAL_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for DECIMAL_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DECIMAL_0 { } unsafe impl :: windows :: Abi for DECIMAL_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DECIMAL_0_0 { pub scale : u8 , pub sign : u8 } impl DECIMAL_0_0 { } impl :: std :: default :: Default for DECIMAL_0_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for DECIMAL_0_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "scale" , & self . scale ) . field ( "sign" , & self . sign ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DECIMAL_0_0 { fn eq ( & self , other : & Self ) -> bool { self . scale == other . scale && self . sign == other . sign } } impl :: std :: cmp :: Eq for DECIMAL_0_0 { } unsafe impl :: windows :: Abi for DECIMAL_0_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DECIMAL_1 { pub Anonymous : DECIMAL_1_0 , pub Lo64 : u64 } impl DECIMAL_1 { } impl :: std :: default :: Default for DECIMAL_1 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for DECIMAL_1 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DECIMAL_1 { } unsafe impl :: windows :: Abi for DECIMAL_1 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DECIMAL_1_0 { pub Lo32 : u32 , pub Mid32 : u32 } impl DECIMAL_1_0 { } impl :: std :: default :: Default for DECIMAL_1_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for DECIMAL_1_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "Lo32" , & self . Lo32 ) . field ( "Mid32" , & self . Mid32 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DECIMAL_1_0 { fn eq ( & self , other : & Self ) -> bool { self . Lo32 == other . Lo32 && self . Mid32 == other . Mid32 } } impl :: std :: cmp :: Eq for DECIMAL_1_0 { } unsafe impl :: windows :: Abi for DECIMAL_1_0 { type Abi = Self ; type DefaultType = Self ; } pub const DEVPKEY_Device_FriendlyName : super::PropertiesSystem:: PROPERTYKEY = super::PropertiesSystem:: PROPERTYKEY { fmtid : :: windows :: Guid :: from_values ( 2757502286 ,57116 ,20221 , [ 128 ,32 ,103 ,209 ,70 ,168 ,80 ,224 ] , ) , pid : 14u32 , } ; } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Threading { pub unsafe fn CancelWaitableTimer < 'a , > ( htimer : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn CancelWaitableTimer ( htimer : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( CancelWaitableTimer ( htimer . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateEventW < 'a , > ( lpeventattributes : * const super::super::Security:: SECURITY_ATTRIBUTES , bmanualreset : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , binitialstate : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn CreateEventW ( lpeventattributes : * const super::super::Security:: SECURITY_ATTRIBUTES , bmanualreset : super::super::Foundation:: BOOL , binitialstate : super::super::Foundation:: BOOL , lpname : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HANDLE ; } :: std :: mem :: transmute ( CreateEventW ( :: std :: mem :: transmute ( lpeventattributes ) , bmanualreset . into_param ( ) . abi ( ) , binitialstate . into_param ( ) . abi ( ) , lpname . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateWaitableTimerW < 'a , > ( lptimerattributes : * const super::super::Security:: SECURITY_ATTRIBUTES , bmanualreset : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lptimername : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn CreateWaitableTimerW ( lptimerattributes : * const super::super::Security:: SECURITY_ATTRIBUTES , bmanualreset : super::super::Foundation:: BOOL , lptimername : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HANDLE ; } :: std :: mem :: transmute ( CreateWaitableTimerW ( :: std :: mem :: transmute ( lptimerattributes ) , bmanualreset . into_param ( ) . abi ( ) , lptimername . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub type PTIMERAPCROUTINE = unsafe extern "system" fn ( lpargtocompletionroutine : * const :: std :: ffi :: c_void , dwtimerlowvalue : u32 , dwtimerhighvalue : u32 ) ; pub unsafe fn SetWaitableTimer < 'a , > ( htimer : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , lpduetime : * const i64 , lperiod : i32 , pfncompletionroutine : :: std :: option :: Option < PTIMERAPCROUTINE > , lpargtocompletionroutine : * const :: std :: ffi :: c_void , fresume : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn SetWaitableTimer ( htimer : super::super::Foundation:: HANDLE , lpduetime : * const i64 , lperiod : i32 , pfncompletionroutine : :: windows :: RawPtr , lpargtocompletionroutine : * const :: std :: ffi :: c_void , fresume : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( SetWaitableTimer ( htimer . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpduetime ) , :: std :: mem :: transmute ( lperiod ) , :: std :: mem :: transmute ( pfncompletionroutine ) , :: std :: mem :: transmute ( lpargtocompletionroutine ) , fresume . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WAIT_RETURN_CAUSE ( pub u32 ) ; pub const WAIT_OBJECT_0 : WAIT_RETURN_CAUSE = WAIT_RETURN_CAUSE ( 0u32 ) ; pub const WAIT_ABANDONED : WAIT_RETURN_CAUSE = WAIT_RETURN_CAUSE ( 128u32 ) ; pub const WAIT_ABANDONED_0 : WAIT_RETURN_CAUSE = WAIT_RETURN_CAUSE ( 128u32 ) ; pub const WAIT_IO_COMPLETION : WAIT_RETURN_CAUSE = WAIT_RETURN_CAUSE ( 192u32 ) ; pub const WAIT_TIMEOUT : WAIT_RETURN_CAUSE = WAIT_RETURN_CAUSE ( 258u32 ) ; pub const WAIT_FAILED : WAIT_RETURN_CAUSE = WAIT_RETURN_CAUSE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for WAIT_RETURN_CAUSE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WAIT_RETURN_CAUSE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WAIT_RETURN_CAUSE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WAIT_RETURN_CAUSE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WAIT_RETURN_CAUSE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WAIT_RETURN_CAUSE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for WAIT_RETURN_CAUSE { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } pub unsafe fn WaitForMultipleObjects < 'a , > ( ncount : u32 , lphandles : * const super::super::Foundation:: HANDLE , bwaitall : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwmilliseconds : u32 , ) -> WAIT_RETURN_CAUSE { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn WaitForMultipleObjects ( ncount : u32 , lphandles : * const super::super::Foundation:: HANDLE , bwaitall : super::super::Foundation:: BOOL , dwmilliseconds : u32 ) -> WAIT_RETURN_CAUSE ; } :: std :: mem :: transmute ( WaitForMultipleObjects ( :: std :: mem :: transmute ( ncount ) , :: std :: mem :: transmute ( lphandles ) , bwaitall . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwmilliseconds ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } } } } }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking process v0.1.0 (/opt/rustwide/workdir/process)
[INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os`
[INFO] [stdout]   --> process/src/utils.rs:67:18
[INFO] [stdout]    |
[INFO] [stdout] 67 |     use std::os::windows::ffi::OsStringExt;
[INFO] [stdout]    |                  ^^^^^^^ could not find `windows` in `os`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os`
[INFO] [stdout]   --> process/src/utils.rs:80:18
[INFO] [stdout]    |
[INFO] [stdout] 80 |     use std::os::windows::ffi::OsStrExt;
[INFO] [stdout]    |                  ^^^^^^^ could not find `windows` in `os`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope
[INFO] [stdout]   --> process/src/utils.rs:74:19
[INFO] [stdout]    |
[INFO] [stdout] 74 |         OsString::from_wide(slice).to_string_lossy().into_owned()
[INFO] [stdout]    |                   ^^^^^^^^^ function or associated item not found in `OsString`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope
[INFO] [stdout]   --> process/src/utils.rs:82:10
[INFO] [stdout]    |
[INFO] [stdout] 81 | /     OsStr::new(s)
[INFO] [stdout] 82 | |         .encode_wide()
[INFO] [stdout]    | |         -^^^^^^^^^^^ method not found in `&OsStr`
[INFO] [stdout]    | |_________|
[INFO] [stdout]    | 
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `process` (lib) due to 5 previous errors
[INFO] running `Command { std: "docker" "inspect" "8ab42fc9da774430084dd6a073b8eb34d61fb832bc3d5a1b17475b6846a6b126", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8ab42fc9da774430084dd6a073b8eb34d61fb832bc3d5a1b17475b6846a6b126", kill_on_drop: false }`
[INFO] [stdout] 8ab42fc9da774430084dd6a073b8eb34d61fb832bc3d5a1b17475b6846a6b126
